github actions: move cargo home to local directory in attempt to correctly cache
This commit is contained in:
parent
5bf7e92c23
commit
086059c11f
5
.github/workflows/rust.yml
vendored
5
.github/workflows/rust.yml
vendored
@ -21,10 +21,11 @@ jobs:
|
|||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
.cargo_home
|
||||||
~/.cargo/git
|
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- name: Configure cargo data directory
|
||||||
|
run: echo "::set-env name=CARGO_HOME::$(pwd)/.cargo_home"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo check
|
run: cargo check
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
Loading…
Reference in New Issue
Block a user