Skip to content

Commit e0058fd

Browse files
committed
test cargo cache
1 parent e4a4666 commit e0058fd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,30 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21+
- name: Cache cargo registry
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.cargo/registry
25+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-cargo-registry-
28+
29+
- name: Cache cargo index
30+
uses: actions/cache@v4
31+
with:
32+
path: ~/.cargo/git
33+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-cargo-index-
36+
37+
- name: Cache cargo build
38+
uses: actions/cache@v4
39+
with:
40+
path: target
41+
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
42+
restore-keys: |
43+
${{ runner.os }}-cargo-build-
44+
2145
- name: Build
2246
run: cargo build --release
2347

0 commit comments

Comments
 (0)