Skip to content

Commit 5c21351

Browse files
Switch cache action
1 parent 7fe5bed commit 5c21351

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/release.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,20 @@ jobs:
4141
toolchain: stable
4242
target: ${{ matrix.target }}
4343
- uses: bahmutov/[email protected]
44-
- name: Cache Cargo
45-
uses: actions/cache@v4
44+
- uses: Swatinem/rust-cache@v2
4645
with:
47-
key: ${{ matrix.name }}-cargo-${{ hashFiles('**/Cargo.lock') }}
48-
path: |
49-
~/.cargo/bin/
50-
~/.cargo/git/db/
51-
~/.cargo/registry/cache/
52-
~/.cargo/registry/index/
53-
target/
54-
restore-keys: ${{ matrix.name }}-cargo-
46+
shared-key: ${{ matrix.name }}
47+
# - name: Cache Cargo
48+
# uses: actions/cache@v4
49+
# with:
50+
# key: ${{ matrix.name }}-cargo-${{ hashFiles('**/Cargo.lock') }}
51+
# path: |
52+
# ~/.cargo/bin/
53+
# ~/.cargo/git/db/
54+
# ~/.cargo/registry/cache/
55+
# ~/.cargo/registry/index/
56+
# target/
57+
# restore-keys: ${{ matrix.name }}-cargo-
5558
- name: Remove CommandLineTools SDKs
5659
if: ${{ matrix.target == 'aarch64-apple-darwin' }}
5760
run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;

0 commit comments

Comments
 (0)