From b7f8b44f6aafcef30986a100aebc61731eeffbc3 Mon Sep 17 00:00:00 2001 From: kat witch Date: Fri, 21 May 2021 17:32:02 +0100 Subject: [PATCH] ci: garbage collect between host builds --- ci/niv-cron.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/niv-cron.nix b/ci/niv-cron.nix index 46f32d84..f6b03435 100644 --- a/ci/niv-cron.nix +++ b/ci/niv-cron.nix @@ -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)