Skip to content

ci: use cargo hack

ci: use cargo hack #20

Workflow file for this run

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"