From ca2a9b50c08861ddfeea5d5a514a2bb51067294a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Jan 2020 17:36:09 +0100 Subject: Try to restore caching on CI --- .github/workflows/ci.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 84c04ee72..d64e9e75c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,7 +39,19 @@ jobs: override: true components: rustfmt, rust-src - - name: Cargo target cache + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + + - name: Cache cargo target dir uses: actions/cache@v1 with: path: target -- cgit v1.2.3 From 817df4571f2aab1e2313c4c018b24bc53ab175c5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Jan 2020 17:50:24 +0100 Subject: More tenacious CI networking --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d64e9e75c..e7e0d599e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,8 @@ jobs: RUSTFLAGS: -D warnings CARGO_INCREMENTAL: 0 RUN_SLOW_TESTS: 1 + RUSTUP_MAX_RETRIES: 10 + CARGO_NET_RETRY: 10 steps: - name: Checkout repository -- cgit v1.2.3