@@ -15,40 +15,39 @@ jobs:
15
15
rust :
16
16
runs-on : ubuntu-20.04
17
17
steps :
18
- - uses : actions-rs/ toolchain@v1
18
+ - uses : dtolnay/rust- toolchain@master
19
19
with :
20
- toolchain : 1.63 .0
20
+ toolchain : 1.65 .0
21
21
components : rustfmt, clippy
22
- default : true
23
22
- name : Checkout git repository
24
23
uses : actions/checkout@master
25
24
- name : Check Rust formatting
26
25
run : cargo fmt -- --check
27
26
- name : Install cargo-deny
28
27
run : |
29
- wget https://github.com/EmbarkStudios/cargo-deny/releases/download/0.12.2 /cargo-deny-0.12.2 -x86_64-unknown-linux-musl.tar.gz
30
- tar -xvf cargo-deny-0.12.2 -x86_64-unknown-linux-musl.tar.gz
28
+ wget https://github.com/EmbarkStudios/cargo-deny/releases/download/0.13.5 /cargo-deny-0.13.5 -x86_64-unknown-linux-musl.tar.gz
29
+ tar -xvf cargo-deny-0.13.5 -x86_64-unknown-linux-musl.tar.gz
31
30
mkdir -p ~/bin/
32
- cp cargo-deny-0.12.2 -x86_64-unknown-linux-musl/cargo-deny ~/bin/
31
+ cp cargo-deny-0.13.5 -x86_64-unknown-linux-musl/cargo-deny ~/bin/
33
32
rm -r cargo-deny-*
34
33
echo "$HOME/bin" >> $GITHUB_PATH
35
34
- name : Cache cargo registry
36
35
uses : actions/cache@v3
37
36
with :
38
37
path : ~/.cargo/registry
39
- key : ${{runner.os}}-cargo-registry-${{hashFiles('**/*.rs ')}}
38
+ key : ${{runner.os}}-cargo-registry-${{hashFiles('Cargo.lock ')}}
40
39
restore-keys : ${{runner.os}}-cargo-registry-
41
40
- name : Cache cargo git index
42
41
uses : actions/cache@v3
43
42
with :
44
43
path : ~/.cargo/git
45
- key : ${{runner.os}}-cargo-git-${{hashFiles('**/*.rs ')}}
44
+ key : ${{runner.os}}-cargo-git-${{hashFiles('Cargo.lock ')}}
46
45
restore-keys : ${{runner.os}}-cargo-git-
47
46
- name : Cache cargo build --release --all-targets
48
47
uses : actions/cache@v3
49
48
with :
50
49
path : target
51
- key : ${{runner.os}}-cargo-target-${{hashFiles('**/*.rs ')}}
50
+ key : ${{runner.os}}-cargo-target-${{hashFiles('Cargo.lock')}}-${{hashFiles(' **/Cargo.toml ')}}
52
51
restore-keys : |
53
52
${{runner.os}}-cargo-target-
54
53
- name : Remove the Cargo target directory
0 commit comments