Skip to content

Commit ca2a9b5

Browse files
committed
Try to restore caching on CI
1 parent 072f0d3 commit ca2a9b5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,19 @@ jobs:
3939
override: true
4040
components: rustfmt, rust-src
4141

42-
- name: Cargo target cache
42+
- name: Cache cargo registry
43+
uses: actions/cache@v1
44+
with:
45+
path: ~/.cargo/registry
46+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
47+
48+
- name: Cache cargo index
49+
uses: actions/cache@v1
50+
with:
51+
path: ~/.cargo/git
52+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
53+
54+
- name: Cache cargo target dir
4355
uses: actions/cache@v1
4456
with:
4557
path: target

0 commit comments

Comments
 (0)