1
0
Fork 0
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:
Yoshiya Hinosawa 2021-04-22 20:17:00 +09:00 committed by GitHub
parent b837fc300d
commit b3013c1f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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