Add CI for testing cargo features
This commit is contained in:
parent
34384b7a68
commit
1f69bc459a
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@ -196,3 +196,28 @@ jobs:
|
||||
- name: Test (release)
|
||||
run: cross test --verbose --target=${{ matrix.target }} --release
|
||||
|
||||
features:
|
||||
name: "Check cargo features (${{ matrix.features }} ${{ matrix.rustflags }})"
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
rustflags:
|
||||
- ""
|
||||
- "-Ctarget-feature=+avx512" # AVX-512 uses packed bit masks, so enable it to test more code paths
|
||||
features:
|
||||
- ""
|
||||
- "--feature std"
|
||||
- "--feature const_evaluatable_checked"
|
||||
- "--feature std --feature const_evaluatable_checked"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Rust
|
||||
run: |
|
||||
rustup update nightly --no-self-update
|
||||
rustup default nightly
|
||||
- name: Check build
|
||||
run: cargo check --all-targets --no-default-features ${{ matrix.features }}
|
||||
env:
|
||||
RUSTFLAGS: ${{ matrix.rustflags }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user