diff options
-rw-r--r-- | .github/workflows/ci.yaml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 84c04ee72..e7e0d599e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -18,6 +18,8 @@ jobs: | |||
18 | RUSTFLAGS: -D warnings | 18 | RUSTFLAGS: -D warnings |
19 | CARGO_INCREMENTAL: 0 | 19 | CARGO_INCREMENTAL: 0 |
20 | RUN_SLOW_TESTS: 1 | 20 | RUN_SLOW_TESTS: 1 |
21 | RUSTUP_MAX_RETRIES: 10 | ||
22 | CARGO_NET_RETRY: 10 | ||
21 | steps: | 23 | steps: |
22 | 24 | ||
23 | - name: Checkout repository | 25 | - name: Checkout repository |
@@ -39,7 +41,19 @@ jobs: | |||
39 | override: true | 41 | override: true |
40 | components: rustfmt, rust-src | 42 | components: rustfmt, rust-src |
41 | 43 | ||
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 | ||
43 | uses: actions/cache@v1 | 57 | uses: actions/cache@v1 |
44 | with: | 58 | with: |
45 | path: target | 59 | path: target |