Skip to content

Commit

Permalink
Split out caches and use restore-keys to configure fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
thedataking committed Jan 2, 2021
1 parent 4766680 commit 69266eb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/internal-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 69266eb

Please sign in to comment.