0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-23 15:50:11 -05:00

ci: Use github action's cache (#319)

We don't have many crate deps, but this is free and reduces sccache load slightly.
This commit is contained in:
Ryan Dahl 2020-03-18 10:48:34 -04:00 committed by GitHub
parent 27307515e2
commit d70088fa06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,23 @@ jobs:
python-version: "2.7.x"
architecture: x64
# Cache https://github.com/actions/cache/blob/master/examples.md#rust---cargo
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Install and start sccache
shell: pwsh
working-directory: ${{ runner.temp }}