Skip to content

Commit 34b4c3b

Browse files
committed
ci: use shared rust-cache
1 parent 1e93727 commit 34b4c3b

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@v5
4039
with:

.github/workflows/release-build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ jobs:
5959
if: ${{ !matrix.container }}
6060
with:
6161
toolchain: stable
62-
- uses: Swatinem/rust-cache@v2
63-
with:
64-
shared-key: release-build-${{ matrix.target }}
65-
cache-workspace-crates: "true"
6662
- name: Build (release)
6763
run: cargo build --release
6864
- name: Prepare CLI regression golden binary

0 commit comments

Comments
 (0)