Skip to content

Commit c5af72e

Browse files
committed
ci: use shared rust-cache
1 parent eb6e944 commit c5af72e

3 files changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
toolchain: ${{ matrix.rust }}
3636
- uses: Swatinem/rust-cache@v2
3737
with:
38-
shared-key: ci-test-${{ matrix.os }}-${{ matrix.rust }}
39-
cache-workspace-crates: "true"
38+
shared-key: cargo-${{ matrix.os }}-${{ matrix.rust }}
4039
- name: Build
4140
run: cargo build
4241
- name: Cargo Test
@@ -58,8 +57,7 @@ jobs:
5857
components: clippy
5958
- uses: Swatinem/rust-cache@v2
6059
with:
61-
shared-key: ci-clippy-${{ runner.os }}-stable
62-
cache-workspace-crates: "true"
60+
shared-key: cargo-${{ runner.os }}-stable
6361
- run: cargo clippy
6462

6563
unused-deps:
@@ -70,10 +68,6 @@ jobs:
7068
- uses: dtolnay/rust-toolchain@stable
7169
with:
7270
toolchain: stable
73-
- uses: Swatinem/rust-cache@v2
74-
with:
75-
shared-key: ci-unused-deps-${{ runner.os }}-stable
76-
cache-workspace-crates: "true"
7771
- name: Install machete
7872
run: cargo install cargo-machete
7973
- name: Check for unused dependencies

.github/workflows/cli_regression.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
toolchain: stable
3434
- uses: Swatinem/rust-cache@v2
3535
with:
36-
shared-key: cli-regression-${{ matrix.target }}-stable
37-
cache-workspace-crates: "true"
36+
shared-key: cargo-${{ runner.os }}-stable
3837
- name: Restore CLI regression golden binary
3938
uses: actions/cache/restore@v4
4039
with:

.github/workflows/release-build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ jobs:
5151
if: ${{ !matrix.container }}
5252
with:
5353
toolchain: stable
54-
- uses: Swatinem/rust-cache@v2
55-
with:
56-
shared-key: release-build-${{ matrix.target }}
57-
cache-workspace-crates: "true"
5854
- name: Build (release)
5955
run: cargo build --release
6056
- name: Prepare CLI regression golden binary

0 commit comments

Comments
 (0)