Skip to content

chore: remove foundry install #40

chore: remove foundry install

chore: remove foundry install #40

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --doc
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo clippy --all-targets --all-features -- -D warnings
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo fmt --all -- --check
verify-bytecode:
name: Verify Bytecode
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: curl -L https://foundry.paradigm.xyz | bash
- run: cat /home/runner/.bashrc
- run: ls -alh /home/runner/
- run: ls -alh /home/runner/.foundry
- run: ~/.foundry/.bin/foundryup
- run: forge build --contracts=contracts
- run: mkdir -p bytecode/Erc6492.sol
- run: jq -r .bytecode.object out/Erc6492.sol/ValidateSigOffchain.json | xxd -r -p > bytecode/Erc6492.sol/ValidateSigOffchain.bytecode
- run: mkdir -p bytecode/Erc1271Mock.sol
- run: jq -r .bytecode.object out/Erc1271Mock.sol/Erc1271Mock.json | xxd -r -p > bytecode/Erc1271Mock.sol/Erc1271Mock.bytecode
- run: git diff bytecode
- run: if [ -n "$(git diff bytecode)" ]; then exit 1; fi