Skip to content

Merge pull request #44 from eth-applied-research-group/kw/cleanup-tra… #106

Merge pull request #44 from eth-applied-research-group/kw/cleanup-tra…

Merge pull request #44 from eth-applied-research-group/kw/cleanup-tra… #106

Workflow file for this run

name: Rust Checks
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Minimal checks on non-zkvm crates
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download and Extract Fixtures
run: |
chmod +x ./scripts/download-and-extract-fixtures.sh
./scripts/download-and-extract-fixtures.sh
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rustfmt
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Check formatting
run: cargo fmt --check --all
- name: Run tests
run: cargo test -p zkevm-metrics -p witness-generator -p ere-hosts