feat(l2): refactor processes to handle errors at the top and use a common api #405
Workflow file for this run
This file contains 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: L2 Prover CI | |
on: | |
merge_group: | |
pull_request: | |
branches: ["**"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
action: | |
- command: check | |
args: -p ethrex-prover | |
- command: clippy | |
args: -p ethrex-prover --all-targets --no-default-features | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Add Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: ${{ matrix.action.command }} Command | |
run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }} | |
build_and_test: | |
name: Build and Test RISC-V zkVM program | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Rust toolchain install | |
uses: dtolnay/rust-toolchain@stable | |
- name: RISC-V zkVM toolchain install | |
run: | | |
curl -L https://risczero.com/install | bash | |
~/.risc0/bin/rzup install | |
# - name: Caching | |
# uses: Swatinem/rust-cache@v2 | |
- name: Build prover and zkVM | |
run: | | |
cd crates/l2/prover | |
cargo build --release --features build_zkvm | |
- name: Test Prover Execution | |
run: | | |
cd crates/l2/prover | |
RUST_LOG=info make perf_test_proving |