Commit 3548d6b
ci: skip cache warmup if the "previous" commit uses a different toolchain (leanprover-community#37653)
leanprover-community#37564 changed `cache` so that it looks for a bundled `leantar` rather than downloading a copy. This caused the "warmup cache" step introduced in leanprover-community#36623 to break since the "previous" commit being fetched could be using an older toolchain.
We fix this by simply skipping getting the cache for the previous commit if the toolchain differs. It's likely that the oleans are all invalidated anyways.
Prepared with claude code.1 parent 9fee804 commit 3548d6b
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
320 | 326 | | |
321 | 327 | | |
322 | 328 | | |
| |||
0 commit comments