From 310c07d9c887a2e43b640e7c9d5b696b790c44f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Saparelli?= Date: Sun, 24 Jul 2022 16:10:43 +1200 Subject: [PATCH] Reconfigure CI cache with fallbacks (#240) --- .../workflows/build-and-integration-tests.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-integration-tests.yml b/.github/workflows/build-and-integration-tests.yml index b814a19b..3b7c78db 100644 --- a/.github/workflows/build-and-integration-tests.yml +++ b/.github/workflows/build-and-integration-tests.yml @@ -80,7 +80,7 @@ jobs: - name: Configure toolchain run: | - rustup toolchain install --profile minimal nightly + rustup toolchain install --profile minimal --no-self-update nightly rustup default nightly - name: Install cross @@ -103,13 +103,18 @@ jobs: | tee -a $GITHUB_ENV - name: Configure caching - uses: actions/cache@v2 + uses: actions/cache@v3 with: - key: ${{ matrix.os }}-${{ matrix.target }} path: | - ${{ env.HOME }}/.cargo/git - ${{ env.HOME }}/.cargo/registry - target + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.COUTPUT }} + restore-keys: | + ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }} + ${{ runner.os }}-cargo-${{ matrix.target }}- + ${{ runner.os }}-cargo- - name: Install musl-tools if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}