File tree Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 16
16
uses : actions/cache@v3
17
17
with :
18
18
path : |
19
- ~/.cargo/registry/
20
19
~/.cargo/git/db/
20
+ ~/.cargo/registry/index/
21
+ ~/.cargo/registry/cache/
21
22
~/.cargo/bin/
22
23
target/
23
- key : v1-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}-${{ inputs.rust_version }}-${{ inputs.build_profile }}
24
+ key : v1-${{ runner.os }}-cargo-${{ inputs.rust_version }}-${{ hashFiles('**/Cargo.toml') }}-${{ inputs.build_profile }}
25
+ restore-keys : |
26
+ v1-${{ runner.os }}-cargo-${{ inputs.rust_version }}-${{ hashFiles('**/Cargo.toml') }}-
27
+ v1-${{ runner.os }}-cargo-${{ inputs.rust_version }}-
Original file line number Diff line number Diff line change @@ -15,18 +15,21 @@ jobs:
15
15
run : rustup update nightly && rustup default nightly && rustup component add rustfmt
16
16
- run : cargo fmt --all -- --check
17
17
clippy :
18
- name : " clippy #${{ matrix.version }}"
18
+ name : " clippy #${{ matrix.rust_version }}"
19
19
strategy :
20
+ fail-fast : false
20
21
matrix :
21
- version : [nightly, "1.60"]
22
+ rust_version : [" nightly" , "1.60.0", "stable "]
22
23
runs-on : ubuntu-latest
23
24
steps :
24
25
- name : Checkout sources
25
26
uses : actions/checkout@v2
26
27
- name : Cache
27
28
uses : ./.github/actions/cache
29
+ with :
30
+ rust_version : ${{ matrix.rust_version }}
28
31
- name : Install ${{ matrix.version }} toolchain and clippy
29
- run : rustup install ${{ matrix.version }} && rustup default ${{ matrix.version }} && rustup component add clippy
32
+ run : rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }} && rustup component add clippy
30
33
- run : cargo clippy --all-targets --all-features -- -D warnings
31
34
licensecheck :
32
35
runs-on : ubuntu-latest
58
61
- name : Checkout sources
59
62
uses : actions/checkout@v2
60
63
- run : stat LICENSE-3rdparty.yml
61
- - run : cargo install cargo-bundle-licenses
64
+ - name : Cache
65
+ uses : actions/cache@v3
66
+ with :
67
+ path : |
68
+ ~/.cargo/registry/
69
+ ~/.cargo/git/db/
70
+ ~/.cargo/bin/
71
+ ~/.cargo/.crates.toml
72
+ # cache key contains current version of cargo-bundle-licenses
73
+ # when upstream version is updated we can bump the cache key version, to cache the latest version of the tool
74
+ key : " v1-0.5.0"
75
+ - run : cargo install cargo-bundle-licenses
62
76
- name : " Generate new LICENSE-3rdparty.yml and check against the previous"
63
77
env :
64
78
CARGO_HOME : " /tmp/dd-cargo"
You can’t perform that action at this time.
0 commit comments