Commit ada8ed3
authored
Cache dependencies for CI jobs (#4181)
Adds a simple cache of the `~/.cargo/registry` directory and Kani's
`target` directory to reduce compilation times of our dependencies in
CI. This also caches the `~/.rustup` directory to avoid having to
re-download toolchains and re-compile the standard library every CI run.
Caches are shared between workflows that compile Kani in the same way
(e.g. between the `benchcomp-tests` & `perf` jobs since they both
compile in release mode).
Based on testing on my local fork, this change seems to make a minor,
but not insignificant impact on runtimes. Although lost in the noise on
longer jobs, `llbc-regression` & `benchcomp-tests` got noticeably
faster, as did the compiler benchmarking workflows which have to compile
Kani for each commit they are comparing.
**Test runs:**
General Kani CI workflow:
[before](https://github.com/AlexanderPortland/kani/actions/runs/15886762745)
|
[after](https://github.com/AlexanderPortland/kani/actions/runs/15887740017)
Compiler bench workflow:
[before](https://github.com/AlexanderPortland/kani/actions/runs/15888031249)
|
[after](https://github.com/AlexanderPortland/kani/actions/runs/15889545021)
Resolves #4153
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.1 parent 96eb502 commit ada8ed3
File tree
3 files changed
+59
-0
lines changed- .github/workflows
3 files changed
+59
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
| |||
101 | 113 | | |
102 | 114 | | |
103 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
104 | 128 | | |
105 | 129 | | |
106 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
46 | 60 | | |
47 | 61 | | |
48 | 62 | | |
| |||
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
63 | 84 | | |
64 | 85 | | |
65 | 86 | | |
| |||
76 | 97 | | |
77 | 98 | | |
78 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
79 | 106 | | |
80 | 107 | | |
81 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
0 commit comments