github actions: move cargo home to local directory in attempt to correctly cache

This commit is contained in:
Carter Anderson 2020-06-08 01:37:55 -07:00
parent 5bf7e92c23
commit 086059c11f

View file

@ -21,10 +21,11 @@ jobs:
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
.cargo_home
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Configure cargo data directory
run: echo "::set-env name=CARGO_HOME::$(pwd)/.cargo_home"
- name: Build
run: cargo check
- name: Run tests