Update rust.yml

This commit is contained in:
usagi-flow 2022-11-09 20:01:48 +01:00
parent 1ba9efaa00
commit 7b94cc012a
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ on:
env:
CARGO_TERM_COLOR: always
CARGO_TARGET_DIR: ../target
CARGO_TARGET_DIR: ~/cargo-target
jobs:
check:
@ -22,7 +22,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
../target/
~/cargo-target/
key: "rust-check"
#key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- uses: actions/checkout@v3
@ -40,7 +40,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
../target/
~/cargo-target/
key: "rust-build"
- uses: actions/checkout@v3
- name: Build
@ -57,7 +57,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
../target/
~/cargo-target/
key: "rust-build"
- uses: actions/checkout@v3
- name: Run unit tests