From 69266ebf729828b34d2622b2b8c329bb1cac4479 Mon Sep 17 00:00:00 2001 From: Per Larsen Date: Fri, 1 Jan 2021 21:44:55 -0800 Subject: [PATCH] Split out caches and use restore-keys to configure fallbacks --- .github/workflows/internal-testsuite.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/internal-testsuite.yml b/.github/workflows/internal-testsuite.yml index 6adf911deb..626890e7ab 100644 --- a/.github/workflows/internal-testsuite.yml +++ b/.github/workflows/internal-testsuite.yml @@ -33,7 +33,7 @@ jobs: path: testsuite submodules: true - - name: Cache Rust artifacts & compile commands + - name: Cache Rust artifacts uses: actions/cache@v2 with: path: | @@ -42,6 +42,17 @@ jobs: target ${{ github.workspace }}/testsuite/tests/**/compile_commands.json key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + + - name: Cache testsuite compile_commands + uses: actions/cache@v2 + with: + path: | + ${{ github.workspace }}/testsuite/tests/**/compile_commands.json + key: ${{ runner.os }}-ccdb-${{ hashFiles('**/compile_commands.json') }} + restore-keys: | + ${{ runner.os }}-ccdb- - name: Provision Rust run: rustup component add rustfmt-preview rustc-dev