From d4ca8c8f75187df471232dc9edfa06856311d822 Mon Sep 17 00:00:00 2001 From: James Hodgkinson Date: Sat, 27 Sep 2025 08:39:01 +1000 Subject: [PATCH 1/2] fix: ensuring clippy is installed in rust check --- github_linter/fixes/github_actions/templates/Rust/clippy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/github_linter/fixes/github_actions/templates/Rust/clippy.yml b/github_linter/fixes/github_actions/templates/Rust/clippy.yml index 0eef9fc..b7249bc 100644 --- a/github_linter/fixes/github_actions/templates/Rust/clippy.yml +++ b/github_linter/fixes/github_actions/templates/Rust/clippy.yml @@ -20,6 +20,9 @@ jobs: - uses: actions/checkout@v4 - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: clippy - name: "Run clippy" run: cargo clippy --all-targets - name: Run sccache stat for check From 0977ebea57b8a11f58e8dc44d32ab3924b66f6a4 Mon Sep 17 00:00:00 2001 From: James Hodgkinson Date: Sat, 27 Sep 2025 08:40:21 +1000 Subject: [PATCH 2/2] fix: using actions-rust-lang for install --- .../fixes/github_actions/templates/Rust/rust_test.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/github_linter/fixes/github_actions/templates/Rust/rust_test.yml b/github_linter/fixes/github_actions/templates/Rust/rust_test.yml index 8147c07..7d15a6f 100644 --- a/github_linter/fixes/github_actions/templates/Rust/rust_test.yml +++ b/github_linter/fixes/github_actions/templates/Rust/rust_test.yml @@ -17,9 +17,7 @@ jobs: - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.9 - name: Install Rust - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install typical dependencies run: | sudo apt-get update && \ @@ -27,8 +25,6 @@ jobs: libssl-dev - name: "Run cargo test" run: cargo test - - name: "Run cargo clippy" - run: cargo clippy --all-targets - name: "Build the workspace" run: cargo build --workspace - name: Run sccache stat for check