Skip to content

Update GitHub workflow. #35

Update GitHub workflow.

Update GitHub workflow. #35

Workflow file for this run

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
nightly:
name: Test + Clippy (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup toolchain install nightly --no-self-update
- run: rustup default nightly
- 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: # We expect an unknown_lints warning on 1.46.
- run: # Any new warnings added should be flagged because they might indicate
- run: # a bug, but feel free to add them to -A below if they are harmless and
- run: # don't happen on newer Rust versions.
- run: # Also, no Clippy because we probably don't care what old Clippy
- run: # thinks.
- run: RUSTFLAGS='-Dwarnings -Aunknown_lints' cargo test