Repository navigation
Commit e076a81
ports/litex: CI — only skip litex_setup on *exact* cache hit, not file presence.
`build_boards (digilent_arty_full)` was failing on CI because:
1. The new variant's cache key didn't exist (new ci.sh hash).
2. actions/cache fell back via restore-keys to a 1-2-day-old partial
cache.
3. `ci_litex_setup` checked only `~/.local/bin/litex_term` +
`~/litex/litex` existence — both true after the partial restore —
and skipped `./litex_setup.py --init --install`.
4. arty_full's flags (--with-spi-flash + --with-watchdog + ...) needed
LiteX master as of this week; the cached install predated them;
the SoC build tripped over newer-than-cache API surface and
failed.
Plumb `steps.cache-litex.outputs.cache-hit` through to the step as
$LITEX_CACHE_HIT and require BOTH that flag being "true" *and* the
files existing before skipping. Restore-keys fallback now counts as
a miss → fresh install → current upstream master.
Affects every build_* job.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bf46f5a commit e076a81
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
373 | 380 | | |
374 | 381 | | |
375 | 382 | | |
| |||
0 commit comments