name: Quality
on:
pull_request:
push:
branches:
- main
jobs:
clippy_check:
strategy:
matrix:
rustflags:
- ""
- "-C target-feature=-avx2"
- "-C target-feature=-avx2,-pclmulqdq"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@1.88 with:
components: rustfmt, clippy
- name: Validate cargo format
run: cargo fmt -- --check
- name: Run tests
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets
- name: Run tests (no-default-features)
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets --no-default-features
- name: Run tests (known-key)
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets --features known-key
- name: Run tests (128bit)
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets --features 128bit
- name: Run tests (beef)
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets --features beef
- name: Run tests (arraybackend)
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets --features arraybackend
- name: Run tests (approx-number-parsing)
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets --features approx-number-parsing
- name: Run tests (ordered-float)
env:
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}"
run: cargo clippy --all-targets --features ordered-float