Skip to content

Commit 1f69bc4

Browse files
committed
Add CI for testing cargo features
1 parent 34384b7 commit 1f69bc4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,28 @@ jobs:
196196
- name: Test (release)
197197
run: cross test --verbose --target=${{ matrix.target }} --release
198198

199+
features:
200+
name: "Check cargo features (${{ matrix.features }} ${{ matrix.rustflags }})"
201+
runs-on: ubuntu-latest
202+
strategy:
203+
fail-fast: false
204+
matrix:
205+
rustflags:
206+
- ""
207+
- "-Ctarget-feature=+avx512" # AVX-512 uses packed bit masks, so enable it to test more code paths
208+
features:
209+
- ""
210+
- "--feature std"
211+
- "--feature const_evaluatable_checked"
212+
- "--feature std --feature const_evaluatable_checked"
213+
214+
steps:
215+
- uses: actions/checkout@v2
216+
- name: Setup Rust
217+
run: |
218+
rustup update nightly --no-self-update
219+
rustup default nightly
220+
- name: Check build
221+
run: cargo check --all-targets --no-default-features ${{ matrix.features }}
222+
env:
223+
RUSTFLAGS: ${{ matrix.rustflags }}

0 commit comments

Comments
 (0)