style: fix lints from rust 1.81.0 #2415
Workflow file for this run
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
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
name: 64 bit CI | |
jobs: | |
test-64bit: | |
name: Run tests (64 bit) | |
runs-on: ${{ matrix.os }} | |
#container: | |
# image: ubuntu:20.10 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: | |
- stable | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- run: sudo apt-get update -y | |
if: matrix.os == 'ubuntu-latest' | |
- name: cargo check (powerset) | |
run: cargo hack check --feature-powerset --no-dev-deps | |
- name: cargo check examples (powerset) | |
run: cargo hack check --examples --feature-powerset | |
- name: run tests (powerset) | |
run: | | |
cargo hack test --all-targets --feature-powerset | |
- name: run doc tests (powerset) | |
run: | | |
cargo hack test --doc --feature-powerset | |
fmt: | |
name: rust fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
- run: | | |
/bin/bash -c "find src -type f | grep -v auto_bindings | grep -v lib | xargs rustfmt --check" | |
clippy: | |
name: clippy!! | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- name: clippy (all targets, feature powerset) | |
run: cargo hack clippy --all-targets --feature-powerset -- -D warnings | |
msrv: | |
name: Verify MSRV | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.71.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: taiki-e/install-action@cargo-hack | |
- name: cargo check msrv | |
run: cargo hack check --feature-powerset |