Skip to content

Commit c120205

Browse files
diemogebhardtlpil
authored andcommitted
Add Rust dependencies caching steps to GitHub workflow for CI
1 parent af06f15 commit c120205

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
toolchain: ${{ matrix.toolchain }}
4343
target: ${{ matrix.target }}
4444

45+
- name: Handle Rust dependencies caching
46+
uses: Swatinem/rust-cache@v2
47+
with:
48+
key: v1-${{ matrix.target }}
49+
4550
- name: Run tests
4651
uses: clechasseur/rs-cargo@v2
4752
with:
@@ -78,6 +83,11 @@ jobs:
7883
toolchain: stable
7984
components: clippy
8085

86+
- name: Handle Rust dependencies caching
87+
uses: Swatinem/rust-cache@v2
88+
with:
89+
key: v1-linux-gnu
90+
8191
- name: Run linter
8292
run: cargo clippy --workspace
8393

0 commit comments

Comments
 (0)