Improve alignment #908
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- uses: dtolnay/rust-toolchain@1.72 # do clippy chekcs with the minimum supported version | |
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 | |
- name: Run tests (no-default-features) | |
env: | |
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}" | |
run: cargo clippy | |
- name: Run tests (value-no-dup-keys) | |
env: | |
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}" | |
run: cargo clippy --features value-no-dup-keys | |
- name: Run tests (known-key) | |
env: | |
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}" | |
run: cargo clippy --features known-key | |
- name: Run tests (128bit) | |
env: | |
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}" | |
run: cargo clippy --features 128bit | |
- name: Run tests (beef) | |
env: | |
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}" | |
run: cargo clippy --features beef | |
- name: Run tests (arraybackend) | |
env: | |
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}" | |
run: cargo clippy --features arraybackend | |
- name: Run tests (approx-number-parsing) | |
env: | |
RUSTFLAGS: "-C target-cpu=native ${{ matrix.rustflags }}" | |
run: cargo clippy --features approx-number-parsing |