Commit 34d039c
authored
Fix caching in GitHub Actions. (#519)
GitHub Actions cache is limited to 10 GiB and LRU, so with
21 matrix jobs, each storing multiple GiB per run, we were
constantly trashing cache and never restoring anything.
This change:
- prevents PRs from trashing cache,
- enables cache only for select jobs,
- stops caching things that we can download.
Signed-off-by: Piotr Sikora <code@piotrsikora.dev>1 parent 41836dd commit 34d039c
2 files changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | | - | |
96 | | - | |
| 94 | + | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
| |||
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
134 | | - | |
135 | 132 | | |
136 | | - | |
137 | | - | |
| 133 | + | |
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | | - | |
56 | | - | |
| 54 | + | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
284 | 282 | | |
285 | 283 | | |
286 | 284 | | |
| 285 | + | |
287 | 286 | | |
288 | | - | |
289 | 287 | | |
290 | | - | |
291 | | - | |
| 288 | + | |
292 | 289 | | |
293 | 290 | | |
294 | 291 | | |
| |||
0 commit comments