feat: update foundry.toml and artifacts with new bytecode hash settings #21
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: Verify Build Artifacts | |
| on: | |
| pull_request: | |
| paths: | |
| - 'src/**/*.sol' | |
| - '.github/workflows/verify-artifacts.yml' | |
| - 'artifacts/**' | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| jobs: | |
| verify-artifacts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| cache: true | |
| - name: Build contracts | |
| run: forge build | |
| - name: Check artifacts are up to date | |
| run: | | |
| if ! git diff --quiet HEAD -- artifacts/; then | |
| echo "❌ Build artifacts in artifacts/ directory are not up to date!" | |
| echo "" | |
| git diff --name-only HEAD -- artifacts/ | |
| echo "" | |
| echo "Please run 'forge build' locally and commit the updated artifacts." | |
| exit 1 | |
| fi | |
| echo "✅ Build artifacts are up to date!" |