single-pass stats generation #224
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
on: | |
push: | |
paths: | |
- '.github/workflows/rust.yml' | |
- '**.rs' | |
- '**Cargo.toml' | |
jobs: | |
rust: | |
name: Rust checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Cache Rust registry based on lock file | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo/registry/cache/ | |
key: rust-${{ hashFiles('route_verification/Cargo.lock') }} | |
- uses: mozilla-actions/[email protected] | |
- run: | | |
cd route_verification/ | |
cargo test --workspace | |
RUSTFLAGS="-Dwarnings" cargo clippy --workspace | |
cargo fmt -- --check | |
env: | |
SCCACHE_GHA_ENABLED: true | |
RUSTC_WRAPPER: sccache |