name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
msrv:
name: MSRV (1.56.0)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.56.0
- name: cargo check
run: cargo check --workspace --verbose
test:
name: Build, test, clippy (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --workspace --verbose
- name: Run clippy
run: RUSTFLAGS="-Dwarnings" cargo clippy --workspace --all-targets --no-deps