Update rust.yml

This commit is contained in:
usagi-flow 2022-11-09 17:10:28 +01:00
parent bd97312f81
commit 4691702d46
No known key found for this signature in database
1 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,8 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: "rust"
#key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- uses: actions/checkout@v3
- name: Check
run: cargo check
@ -39,7 +40,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: "rust"
- uses: actions/checkout@v3
- name: Build
run: cargo build
@ -56,7 +57,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: "rust"
- uses: actions/checkout@v3
- name: Run unit tests
run: cargo test