Skip to content

Custom bitsets

Custom bitsets #109

Workflow file for this run

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: RUSTFLAGS="--deny warnings" cargo build
# examples:
# name: examples
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - run: |
# for example in examples/*.rs
# do
# name=$(basename "$example" .rs)
# echo "Running example $name"
# RUSTFLAGS="--deny warnings" cargo run --example "$name" --all-features
# done
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