Skip to content

Commit 5914a93

Browse files
authored
Merge pull request #2761 from matklad/caching
Try to restore caching on CI
2 parents 2a8dd49 + 817df45 commit 5914a93

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
RUSTFLAGS: -D warnings
1919
CARGO_INCREMENTAL: 0
2020
RUN_SLOW_TESTS: 1
21+
RUSTUP_MAX_RETRIES: 10
22+
CARGO_NET_RETRY: 10
2123
steps:
2224

2325
- name: Checkout repository
@@ -39,7 +41,19 @@ jobs:
3941
override: true
4042
components: rustfmt, rust-src
4143

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

0 commit comments

Comments
 (0)