ci: use cargo hack #20
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: rustfmt | |
run: cargo fmt -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate,format_code_in_doc_comments=true" | |
- uses: taiki-e/install-action@cargo-hack | |
- name: clippy | |
run: cargo hack clippy --feature-powerset -- -D warnings | |
- name: test | |
run: cargo test --all-features | |
- name: install miri | |
run: rustup install nightly && rustup +nightly component add miri | |
- name: miri | |
run: cargo +nightly miri test --all-features --many-seeds | |
- name: loom | |
run: cargo test --release --lib | |
env: | |
RUSTFLAGS: "--cfg loom" |