rustfmt; fix clippy warnings; specify MSRV #12
Workflow file for this run
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: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
# Check that the build works/passes on the documented minimum version (1.36.0) | |
build_minimum: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Switch to min version | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.36.0 | |
override: true | |
- name: Run tests | |
run: cargo test --verbose --no-default-features --features alloc | |
# Check that all features work on nightly | |
build_nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Switch to nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: miri | |
override: true | |
- name: Install cargo-hack | |
run: cargo install cargo-hack | |
- name: Run tests (--all-features) | |
run: cargo test --all-features | |
- name: Check feature combinations | |
run: cargo hack check --feature-powerset --no-dev-deps | |
- name: Run `miri` | |
run: cargo miri test --all-features |