From 6e20c78dbbaf47d7c57dcdca8346eea82f2ac000 Mon Sep 17 00:00:00 2001 From: Jonathan Le Brun <42697488+icyfry@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:29:12 +0100 Subject: [PATCH] Add ABI generation for dapp --- .github/workflows/build.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d674f6..64f5b3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,5 @@ name: Build + on: push: branches: @@ -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: @@ -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