name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: formatting
run: cargo fmt --all -- --check
- name: clippy (all targets and features)
run: cargo clippy --all-targets --all-features -- -D warnings
- name: build (all targets)
run: cargo build --all-targets --all-features
- name: test
run: cargo test --release --all-features
msrv:
name: MSRV (Rust 1.89)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.89
- run: cargo check --all-targets --all-features
portable:
name: 32-bit portability
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: i686-unknown-linux-gnu
- run: cargo check --target i686-unknown-linux-gnu --lib --all-features
avx512:
name: avx512 (SDE emulation)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: petarpetrovt/setup-sde@v5.0
- name: Build tests
run: cargo test --release --all-features --no-run
- name: cross-impl determinism under emulated AVX-512 (Sapphire Rapids)
run: ${SDE_PATH}/sde64 -spr -- cargo test --release --all-features widths_agree -- --nocapture