Skip to content

Commit 2a0c0f6

Browse files
committed
Pull devenv Cachix cache in devenv CI smoke test
devenv-nixpkgs/rolling isn't on cache.nixos.org, so without the devenv binary cache the runner tried to build the stdenv bootstrap (glibc) from source and failed evaluating config.shell. Add extraPullNames: devenv and bump install-nix-action to v31, matching the working En57 setup.
1 parent 7eadf73 commit 2a0c0f6

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/devenv_setup_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ jobs:
2828
- uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 1
31-
- uses: cachix/install-nix-action@v25
31+
- uses: cachix/install-nix-action@v31
3232
with:
3333
extra_nix_config: accept-flake-config = true
3434
- uses: cachix/cachix-action@v14
3535
with:
3636
name: railseventstore
3737
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
38+
extraPullNames: devenv
3839
- run: nix profile install nixpkgs#devenv
3940
- uses: actions/cache@v4
4041
with:

support/ci/generate

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,18 @@ class CI
311311
end
312312

313313
def setup_nix_flakes
314-
{ "uses" => "cachix/install-nix-action@v25", "with" => { "extra_nix_config" => "accept-flake-config = true" } }
314+
{ "uses" => "cachix/install-nix-action@v31", "with" => { "extra_nix_config" => "accept-flake-config = true" } }
315+
end
316+
317+
def setup_cachix_devenv
318+
{
319+
"uses" => "cachix/cachix-action@v14",
320+
"with" => {
321+
"name" => "railseventstore",
322+
"authToken" => "${{ secrets.CACHIX_AUTH_TOKEN }}",
323+
"extraPullNames" => "devenv",
324+
},
325+
}
315326
end
316327

317328
def install_devenv
@@ -734,7 +745,7 @@ class CI
734745
steps: [
735746
checkout,
736747
setup_nix_flakes,
737-
setup_cachix,
748+
setup_cachix_devenv,
738749
install_devenv,
739750
cache_gems,
740751
devenv_up,

0 commit comments

Comments
 (0)