Commit 6495ef7
CI: Install sqlite3 via apt instead of nix profile
cache-nix-action merges the Nix store database with sqlite3, which the
setup-nix action provided via `nix profile install nixpkgs/nixos-24.11#sqlite`.
Resolving the nixos-24.11 branch goes through api.github.com, which
intermittently returns HTTP 429 when many EC2 runners start at once. When
throttled, sqlite3 was never installed, the store-DB merge failed with
"sqlite3: command not found", and the corrupted store then broke every
subsequent `nix develop` in the job.
Install sqlite3 from apt instead, which never touches api.github.com. Guard
on `command -v sqlite3` so it's a no-op where sqlite3 already exists (macOS
and GitHub-hosted runners) and only installs on the bare EC2 AMIs.
- Ports pq-code-package/mldsa-native#1239
Signed-off-by: Matthias J. Kannwischer <matthias@zerorisc.com>1 parent 9b69e04 commit 6495ef7
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
0 commit comments