fix: fix deprecated proving system commands #85
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ethereum contract tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| jobs: | |
| check: | |
| strategy: | |
| fail-fast: true | |
| name: Foundry project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: Install Nargo | |
| uses: noir-lang/[email protected] | |
| with: | |
| toolchain: 1.0.0-beta.18 | |
| # Note: Solidity verifiers are pre-generated and committed to ethereum/contracts/src/generated-verifier/ | |
| # Generating them in CI causes OOM errors due to high memory requirements | |
| # To regenerate: bb write_solidity_verifier -k ./target/<circuit> -o ./ethereum/contracts/src/generated-verifier/<Circuit>UltraPLONKVerifier.sol | |
| # Will receive warnings about the size of the contracts | |
| - name: Run Forge build | |
| run: | | |
| cd ethereum/contracts | |
| forge --version | |
| forge build --sizes || (test -f out/GetAccountUltraPLONKVerifier.sol/UltraVerifier.json && echo "Contracts compiled successfully despite size warnings" || exit 1) | |
| id: build | |
| - name: Run Forge tests | |
| run: | | |
| cd ethereum/contracts | |
| forge test -vvv | |
| id: test |