ci: fix miri arguments #19
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" | |
- name: clippy no-default-feature | |
run: cargo clippy --no-default-features -- -D warnings | |
- name: clippy all-features | |
run: cargo clippy --all-features --tests -- -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" |