aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-07 17:07:45 +0000
committerGitHub <[email protected]>2020-01-07 17:07:45 +0000
commit5914a93106a85d28d8d3efa534917686ff40287a (patch)
treef8571568b83b2824e1a90d4090e468f3cb4eb678
parent2a8dd492a8e0f575d6d696a7297cdd29a13427db (diff)
parent817df4571f2aab1e2313c4c018b24bc53ab175c5 (diff)
Merge pull request #2761 from matklad/caching
Try to restore caching on CI
-rw-r--r--.github/workflows/ci.yaml16
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