Refactor #122
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: CI | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo build --no-default-features | |
- run: RUSTFLAGS="--deny warnings" cargo build | |
- run: RUSTFLAGS="--deny warnings" cargo build --all-features | |
tests: | |
name: careful tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cache_type_flag: [ | |
hisparsebitset_test_NoCache, | |
hisparsebitset_test_FixedCache, | |
hisparsebitset_test_DynamicCache | |
] | |
config_type_flag: [ | |
hisparsebitset_test_64, | |
hisparsebitset_test_128, | |
hisparsebitset_test_256 | |
] | |
steps: | |
- uses: dtolnay/rust-toolchain@nightly | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-careful | |
- uses: actions/checkout@v4 | |
- run: RUSTFLAGS=" | |
--deny warnings | |
--cfg ${{ matrix.cache_type_flag }} | |
--cfg ${{ matrix.config_type_flag }} | |
" cargo +nightly careful test --all-features | |
miri: | |
name: miri tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cache_type_flag: [ | |
hisparsebitset_test_NoCache, | |
hisparsebitset_test_FixedCache, | |
hisparsebitset_test_DynamicCache | |
] | |
config_type_flag: [ | |
hisparsebitset_test_64, | |
hisparsebitset_test_128, | |
hisparsebitset_test_256 | |
] | |
steps: | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: nightly | |
components: miri | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-nextest | |
- uses: actions/checkout@v4 | |
- run: RUSTFLAGS=" | |
--deny warnings | |
--cfg ${{ matrix.cache_type_flag }} | |
--cfg ${{ matrix.config_type_flag }} | |
" cargo +nightly miri nextest run -j6 --all-features | |
benchmarks: | |
name: benchmarks build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: RUSTFLAGS="--deny warnings" cargo build --benches --all-features | |
doc: | |
name: doc build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: RUSTFLAGS="--deny warnings" cargo doc --lib --all-features | |
docrs: | |
name: docrs build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@nightly | |
- uses: actions/checkout@v4 | |
- run: | |
RUSTFLAGS="--deny warnings" | |
RUSTDOCFLAGS="--cfg docsrs" | |
cargo +nightly doc --lib --all-features |