File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ jobs:
105
105
shell : bash
106
106
- run : rustup target add ${{ matrix.target }}
107
107
- run : rustup component add llvm-tools-preview
108
+ - uses : Swatinem/rust-cache@v2
109
+ with :
110
+ key : ${{ matrix.target }}
108
111
- name : Download compiler-rt reference sources
109
112
run : |
110
113
curl -L -o code.tar.gz https://github.com/rust-lang/llvm-project/archive/rustc/18.0-2024-02-13.tar.gz
@@ -133,6 +136,7 @@ jobs:
133
136
submodules : true
134
137
- name : Install stable `rustfmt`
135
138
run : rustup set profile minimal && rustup default stable && rustup component add rustfmt
139
+ - uses : Swatinem/rust-cache@v2
136
140
- run : cargo fmt -- --check
137
141
138
142
clippy :
@@ -147,6 +151,7 @@ jobs:
147
151
- name : Install nightly `clippy`
148
152
run : |
149
153
rustup set profile minimal && rustup default "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy)" && rustup component add clippy
154
+ - uses : Swatinem/rust-cache@v2
150
155
- run : cargo clippy -- -D clippy::all
151
156
152
157
success :
You can’t perform that action at this time.
0 commit comments