mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
ci: Set restore-keys for cache (#4745)
Before this commit, when Cargo.lock changes, cache is completely rebuilt, wasting time. After this commit, if cache for a specific Cargo.lock is not found, it will fallback to find cache of another Cargo.lock.
This commit is contained in:
parent
e08ece2d2c
commit
e4c130d89b
1 changed files with 4 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -110,6 +110,10 @@ jobs:
|
|||
target/*/gn_out
|
||||
key:
|
||||
${{ matrix.config.os }}-${{ matrix.config.kind }}-${{ hashFiles('Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ matrix.config.os }}-${{ matrix.config.kind }}-${{ hashFiles('Cargo.lock') }}
|
||||
${{ matrix.config.os }}-${{ matrix.config.kind }}-
|
||||
${{ matrix.config.os }}-
|
||||
|
||||
- name: lint.py
|
||||
if: matrix.config.kind == 'lint'
|
||||
|
|
Loading…
Reference in a new issue