Skip to content

Commit

Permalink
Add ABI generation for dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
icyfry committed Jan 30, 2024
1 parent bab1070 commit 6e20c78
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build

on:
push:
branches:
Expand All @@ -12,13 +13,13 @@ env:
jobs:

foundry:
name: Cryptozombies Foundry project
name: Cryptozombies foundry project
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -46,11 +47,18 @@ jobs:
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- uses: pnpm/action-setup@v2
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
run_install: false
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Generate ABI with foundry
working-directory: contracts
run: forge build --out "../dapp/src/abi"
- name: Installing project dependencies
run: pnpm install
- name: Build and tests
Expand Down

0 comments on commit 6e20c78

Please sign in to comment.