Skip to content

Commit

Permalink
Add CI for testing cargo features
Browse files Browse the repository at this point in the history
  • Loading branch information
calebzulawski committed Jul 28, 2021
1 parent 34384b7 commit 1f69bc4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 1f69bc4

Please sign in to comment.