mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
ci: garbage collect between host builds
This commit is contained in:
parent
635706a236
commit
b7f8b44f6a
1 changed files with 2 additions and 2 deletions
|
|
@ -72,8 +72,8 @@ with lib; {
|
|||
if git status --porcelain | grep -qF nix/sources.json; then
|
||||
git -P diff nix/sources.json
|
||||
nix build --no-link -Lf . sourceCache.local
|
||||
echo "checking that hosts still build..." >&2
|
||||
if nix build -Lf . hosts.{athame,yule,samhain}.config.system.build.toplevel; then
|
||||
echo "checking that hosts still build..." >&2
|
||||
if nix build -Lf . hosts.athame.config.system.build.toplevel && nix-collect-garbage -d && nix build -Lf . hosts.yule.config.system.build.toplevel && nix-collect-garbage -d && nix build -Lf . hosts.samhain.config.system.build.toplevel; then
|
||||
if [[ -n $CACHIX_SIGNING_KEY ]]; then
|
||||
nix build --no-link -Lf . sourceCache.all
|
||||
cachix push kittywitch $(nix eval --raw -f . sourceCache.allStr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue