diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a603b21e..29902b25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ env: jobs: test: - name: Compile and test Rust ${{ matrix.rust }} + name: Build and test [${{ matrix.rust }}] runs-on: ubuntu-latest strategy: fail-fast: false @@ -24,11 +24,9 @@ jobs: rust: [1.47.0, stable, beta, nightly] steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true - run: sudo apt-get install libhidapi-dev - run: cargo build --workspace --bins --tests --verbose - run: cargo build --workspace --bins --tests --verbose --release @@ -41,12 +39,8 @@ jobs: RUSTFLAGS: -Dwarnings steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: 1.47.0 - components: clippy - override: true - - run: cargo clippy --workspace --all-targets --all-features --verbose -- -A unknown_lints -D warnings + - uses: dtolnay/rust-toolchain@stable + - run: cargo clippy --workspace --no-deps --all-targets --all-features -- -A unknown_lints -A deprecated -D warnings reuse: name: Check license annotations @@ -60,13 +54,11 @@ jobs: - run: reuse lint rustfmt: - name: Verify code formatting + name: Check code formatting runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@nightly with: - toolchain: 1.47.0 components: rustfmt - override: true - - run: cargo fmt --all -- --check + - run: cargo +nightly fmt -- --check