name: Rust
on:
pull_request:
push:
jobs:
stable:
name: Test + Clippy (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup toolchain install stable --no-self-update
- run: rustup default stable
- run: rustup component add clippy
- run: RUSTFLAGS=-Dwarnings cargo test
- run: cargo clippy -- -Dwarnings
- run: RUSTFLAGS=-Dwarnings cargo build --manifest-path fuzz/Cargo.toml --all
beta:
name: Test + Clippy (beta)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup toolchain install beta --no-self-update
- run: rustup default beta
- run: rustup component add clippy
- run: RUSTFLAGS=-Dwarnings cargo test
- run: cargo clippy -- -Dwarnings
- run: RUSTFLAGS=-Dwarnings cargo build --manifest-path fuzz/Cargo.toml --all
stable-no-default-features:
name: Test + Clippy (stable, no default features)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup toolchain install stable --no-self-update
- run: rustup default stable
- run: rustup component add clippy
- run: RUSTFLAGS=-Dwarnings cargo test --no-default-features && cargo clippy --no-default-features -- -Dwarnings
msrv:
name: Test (MSRV)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup toolchain install 1.46 --no-self-update
- run: rustup default 1.46
- run: RUSTFLAGS='-Dwarnings -Aunknown_lints' cargo test