@@ -15,6 +15,8 @@ concurrency:
15
15
env :
16
16
CARGO_TERM_COLOR : always
17
17
CARGO_NET_GIT_FETCH_WITH_CLI : " true"
18
+ SCCACHE_GHA_ENABLED : " true"
19
+ RUSTC_WRAPPER : " sccache"
18
20
19
21
jobs :
20
22
opa-lint :
@@ -116,6 +118,10 @@ jobs:
116
118
name : Run `cargo deny` checks
117
119
runs-on : ubuntu-latest
118
120
121
+ env :
122
+ # We need to remove the sccache wrapper because we don't install it in this job
123
+ RUSTC_WRAPPER : " "
124
+
119
125
permissions :
120
126
contents : read
121
127
@@ -143,10 +149,8 @@ jobs:
143
149
rustup toolchain install stable
144
150
rustup default stable
145
151
146
- - name : Setup Rust cache
147
-
148
- with :
149
- save-if : " ${{ github.event_name != 'pull_request' }}"
152
+ - name : Setup sccache
153
+ uses :
mozilla-actions/[email protected]
150
154
151
155
- name : Install Node
152
156
@@ -204,10 +208,8 @@ jobs:
204
208
working-directory : ./policies
205
209
run : make
206
210
207
- - name : Setup Rust cache
208
-
209
- with :
210
- save-if : " ${{ github.event_name != 'pull_request' }}"
211
+ - name : Setup sccache
212
+ uses :
mozilla-actions/[email protected]
211
213
212
214
- name : Run clippy
213
215
run : |
@@ -268,10 +270,8 @@ jobs:
268
270
working-directory : ./policies
269
271
run : make
270
272
271
- - name : Setup Rust cache
272
-
273
- with :
274
- save-if : " ${{ github.event_name != 'pull_request' }}"
273
+ - name : Setup sccache
274
+ uses :
mozilla-actions/[email protected]
275
275
276
276
- name : Test
277
277
id : test
0 commit comments