Relax zeroize dependency and bump MSRV (#412) #1
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
name: Rust | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ main, develop ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test-u32: | |
name: Test u32 backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features --features "std u32_backend" | |
test-u64: | |
name: Test u64 backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features --features "std u64_backend" | |
test-simd: | |
name: Test simd backend (nightly) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features --features "std simd_backend" | |
test-defaults-serde: | |
name: Test default feature selection and serde | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features "serde" | |
test-alloc-u32: | |
name: Test no_std+alloc with u32 backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --lib --no-default-features --features "alloc u32_backend" | |
nightly: | |
name: Test nightly compiler | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features "nightly" | |
msrv: | |
name: Current MSRV is 1.56.1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# First run `cargo +nightly -Z minimal-verisons check` in order to get a | |
# Cargo.lock with the oldest possible deps | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- run: cargo -Z minimal-versions check --no-default-features --features "fiat_u64_backend,serde" | |
# Now check that `cargo build` works with respect to the oldest possible | |
# deps and the stated MSRV | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.56.1 | |
override: true | |
- run: cargo build --no-default-features --features "fiat_u64_backend,serde" | |
bench: | |
name: Check that benchmarks compile | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: bench | |
# This filter selects no benchmarks, so we don't run any, only build them. | |
args: "nonexistentbenchmark" |