1
0
Fork 0
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:
Khải 2020-04-14 23:41:42 +07:00 committed by GitHub
parent e08ece2d2c
commit e4c130d89b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'