From 6b4c26b1762f5253bc128ce2ff67c229e4c729b9 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Tue, 17 Dec 2024 17:43:42 +0000 Subject: [PATCH] Run Clippy on stable rustc; tweak workflow --- .github/workflows/workspace.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index ef92b7f4..4fb165c8 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -4,30 +4,21 @@ on: pull_request: paths-ignore: - README.md - - "benches/**" push: branches: master paths-ignore: - README.md - - "benches/**" jobs: clippy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: 1.78.0 - components: clippy - - run: cargo clippy --all --all-targets -- -D warnings - - rustfmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master with: toolchain: stable - components: rustfmt - - run: cargo fmt --all -- --check + components: clippy, rustfmt + - name: Clippy + run: cargo clippy --all --all-targets -- -D warnings + - name: Rustfmt + run: cargo fmt --all -- --check