Skip to content

Commit

Permalink
add new just action for building contracts and do this in CI before r…
Browse files Browse the repository at this point in the history
…unning tests that use solidity build output
  • Loading branch information
willemolding committed Oct 10, 2023
1 parent 90cbed1 commit 0df6ff1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
- name: Download consensus spec
run: just download-spec-tests

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Build contracts
run: just build-contracts

# skip this in favour of compiling in the `Test` action.
# - name: Check
# run: cargo check --all
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ gen-step-evm-verifier:
gen-rotation-evm-verifier:
cargo run -r -- aggregation -c ./lightclient-circuits/config/aggregation.json --app-pk-path ./build/committee_update.pkey --app-config-path ./lightclient-circuits/config/committee_update.json -i ./rotation -o evm-verifier ./contracts/snark-verifiers/committee_update_aggregated.yul

build-contracts:
cd contracts && forge build

# downloads spec tests and copies them to the right locations.
download-spec-tests: clean-spec-tests
#!/usr/bin/env bash
Expand Down

0 comments on commit 0df6ff1

Please sign in to comment.