Commit b643804 1 parent 65e28bf commit b643804 Copy full SHA for b643804
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
steps :
19
19
- uses : actions/checkout@v2
20
20
- name : Set up Rust nightly
21
+ id : toolchain
21
22
uses : actions-rs/toolchain@v1
22
23
with :
23
24
profile : minimal
@@ -26,12 +27,13 @@ jobs:
26
27
- name : Cache cargo build
27
28
uses : actions/cache@v1
28
29
env :
29
- cache-name : cargo-build-target-2
30
+ cache-name : cargo-build-target
30
31
with :
31
32
path : target
32
- key : ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }}
33
+ # key needs to contain rustc_hash due to https://github.com/ActivityWatch/aw-server-rust/issues/180
34
+ key : ${{ runner.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}
33
35
restore-keys : |
34
- ${{ runner.os }}-${{ env.cache-name }}-
36
+ ${{ runner.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-
35
37
- name : Build
36
38
run : cargo build --workspace --verbose
37
39
- name : Run tests
You can’t perform that action at this time.
0 commit comments