mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
ci: separate cache for cargo home and build output (#10306)
This commit is contained in:
parent
b837fc300d
commit
b3013c1f95
1 changed files with 13 additions and 6 deletions
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
@ -167,17 +167,24 @@ jobs:
|
||||||
brew install gnu-tar
|
brew install gnu-tar
|
||||||
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
|
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache Cargo home
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
# See https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry/index
|
||||||
|
~/.cargo/registry/cache
|
||||||
|
~/.cargo/git/db
|
||||||
|
key:
|
||||||
|
a-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
|
||||||
|
|
||||||
|
- name: Cache build output
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/git
|
|
||||||
~/.cargo/registry
|
|
||||||
./target
|
./target
|
||||||
key:
|
key:
|
||||||
d-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }}
|
d-${{ matrix.os }}-${{ matrix.kind }}-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('Cargo.lock') }}
|
||||||
restore-keys: |
|
|
||||||
d-${{ matrix.os }}-${{ matrix.kind }}-
|
|
||||||
|
|
||||||
- name: Apply and update mtime cache
|
- name: Apply and update mtime cache
|
||||||
uses: ./.github/mtime_cache
|
uses: ./.github/mtime_cache
|
||||||
|
|
Loading…
Reference in a new issue