Commit 457d2db
Mohammod Al Amin Ashik
fix(ci): refresh apt lists before installing Linux deps
The runner image ships an apt index from its build date (2026-06-24), and
cache-apt-pkgs-action's update_apt_lists_if_stale only runs under nektos/act
-- it guards on ACT=true, so on real runners it is a no-op. Its premise
("GitHub Actions runners have fresh package lists") does not hold.
Ubuntu published pipewire 1.0.5-1ubuntu3.3 and removed 3.2 from the pool, so
apt resolved a .deb that 404s. The action runs apt-fast install without
checking its exit code, so the failure was swallowed: it cached 0 packages as
a 6 KB entry, which every later run restored as a hit and then skipped the
install entirely -- leaving libglib2.0-dev absent and failing rust-check and
ts-check on every branch, including main.
Refreshing the index first makes apt resolve debs that actually exist.1 parent baa44c9 commit 457d2db
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
16 | 26 | | |
17 | 27 | | |
18 | 28 | | |
| |||
0 commit comments