mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-09 21:47:00 -04: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:
parent
27307515e2
commit
d70088fa06
1 changed files with 17 additions and 0 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -60,6 +60,23 @@ jobs:
|
||||||
python-version: "2.7.x"
|
python-version: "2.7.x"
|
||||||
architecture: x64
|
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
|
- name: Install and start sccache
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
working-directory: ${{ runner.temp }}
|
working-directory: ${{ runner.temp }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue