Commit 08bf8ac
committed
Split format and clippy into separate CI jobs
Improve CI performance by making cache more effective.
The format check requires a nightly toolchain to support unstable
formatting options but does not need to compile anything - this means
the cache doesn't really affect the runtime and can be skipped.
The clippy job needs to compile the project and therefore needs all the
dependencies available.
The cache uses the version of rust as part of the key so a nightly build
guarantees a cache miss for the first job each day. Using the stable
toolchain for the clippy check allows it to use the same cache from
previous runs reducing the need to download crates twice for each PR.1 parent f557718 commit 08bf8ac
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
0 commit comments