mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 09:10:49 +00:00
Cache by rustc hash (#3)
This commit is contained in:
parent
10ba2dda1d
commit
6659bdda57
2 changed files with 8 additions and 3 deletions
7
.github/workflows/build_test.yml
vendored
7
.github/workflows/build_test.yml
vendored
|
@ -27,6 +27,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
id: cargo
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy
|
||||
|
@ -36,7 +37,7 @@ jobs:
|
|||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-rust-check-${{ hashFiles('**/Cargo.lock') }}
|
||||
key: ${{ runner.os }}-rust-${{ steps.cargo.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}-lint
|
||||
- name: Run cargo check
|
||||
run: cargo check
|
||||
- name: Run clippy
|
||||
|
@ -47,14 +48,16 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
id: cargo
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-rust-debug-${{ hashFiles('**/Cargo.lock') }}
|
||||
key: ${{ runner.os }}-rust-${{ steps.cargo.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}-debug-build
|
||||
- name: Run cargo test
|
||||
run: cargo test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue