mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
github actions: move cargo home to local directory in attempt to correctly cache
This commit is contained in:
parent
5bf7e92c23
commit
086059c11f
1 changed files with 3 additions and 2 deletions
5
.github/workflows/rust.yml
vendored
5
.github/workflows/rust.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue