Skip to content

Commit 080e40b

Browse files
committed
Use actions-rust-lang/setup-rust-toolchain
Pinned to v1.12.0’s commit hash, 9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9
1 parent f9cb363 commit 080e40b

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/tests.yml

+5-16
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,13 @@ jobs:
1616
- "nightly"
1717
steps:
1818
- uses: actions/checkout@v4 # not pinning to commit hash since this is a GitHub action, which we trust
19-
- id: cache-cargo
20-
name: Cache Cargo toolchain
21-
uses: actions/cache@v4 # not pinning to commit hash since this is a GitHub action, which we trust
19+
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0
2220
with:
23-
path: |
24-
~/.cargo/bin/
25-
~/.cargo/registry/index/
26-
~/.cargo/registry/cache/
27-
~/.cargo/git/db/
28-
target/
29-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-release
30-
- if: ${{ steps.cache-cargo.outputs.cache-hit != 'true' }}
31-
name: Install Rust toolchain
32-
uses: actions-rs/toolchain@v1 # not pinning to commit hash since this is an archived GitHub action, which we trust
33-
with:
34-
profile: minimal
3521
toolchain: ${{ matrix.rust-toolchain }}
36-
override: true
22+
profile: minimal
23+
components: rustfmt, clippy
24+
- name: Check
25+
run: cargo check
3726
- name: Architecture check
3827
run: cargo run arch-check
3928
- name: Architecture check (Optimized)

0 commit comments

Comments
 (0)