You signed in with another tab or w
8000
indow. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: cache the Nix store in the GitHub Actions cache (magic-nix-cache or similar) #14
Use the GitHub Actions cache as a Nix binary cache in CI.
magic-nix-cache does this with one step after the Nix install. It needs no secret, so pull requests from forks get the cache too. It does not replace the cachix push: cachix stays the cache that clusters and users substitute from.
Today a runner substitutes from cache.nixos.org, nixkube.c
8000
achix.org and lillecarl.cachix.org only. A path that none of them holds (a check, a test VM, a failed push) builds again on every run.
Where: ghanix generates every workflow in this repository (nix run --file . ci-workflow-update). Add the step to the generator once, next to cachix/install-nix-action, and every workflow gets it.
Limits: the GHA cache has read and write rate limits and a per-repository size limit with eviction. A large rebuild can hit the rate limit; magic-nix-cache then builds instead of failing.
Activity