Skip to content

Commit cd24bd8

Browse files
authored
Clippy GHA updates (#609)
* fix: ensuring clippy is installed in rust check * fix: using actions-rust-lang for install
1 parent cc34d18 commit cd24bd8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

github_linter/fixes/github_actions/templates/Rust/clippy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- name: Setup sccache
2222
uses: mozilla-actions/[email protected]
23+
- uses: actions-rust-lang/setup-rust-toolchain@v1
24+
with:
25+
components: clippy
2326
- name: "Run clippy"
2427
run: cargo clippy --all-targets
2528
- name: Run sccache stat for check

github_linter/fixes/github_actions/templates/Rust/rust_test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@ jobs:
1717
- name: Setup sccache
1818
uses: mozilla-actions/[email protected]
1919
- name: Install Rust
20-
uses: dtolnay/rust-toolchain@stable
21-
with:
22-
toolchain: stable
20+
uses: actions-rust-lang/setup-rust-toolchain@v1
2321
- name: Install typical dependencies
2422
run: |
2523
sudo apt-get update && \
2624
sudo apt-get install -y \
2725
libssl-dev
2826
- name: "Run cargo test"
2927
run: cargo test
30-
- name: "Run cargo clippy"
31-
run: cargo clippy --all-targets
3228
- name: "Build the workspace"
3329
run: cargo build --workspace
3430
- name: Run sccache stat for check

0 commit comments

Comments
 (0)