From b039dec11154e05a8c2a9b43fae789aee1a5ea9c Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 30 May 2024 16:29:32 +0200 Subject: [PATCH] ci: update results path to prevent garbage collection --- .forgejo/workflows/check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 12a5ddcd..fe6890e0 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -16,6 +16,8 @@ jobs: run: | set -exuo pipefail # Prevent cache garbage collection by creating GC roots + mkdir -p /var/lib/gitea-runner/tankstelle/.local/state/nix/results + for target in $(nix flake show --json --all-systems | jq ' .["nixosConfigurations"] | to_entries[] | @@ -23,7 +25,7 @@ jobs: ' | tr -d '"' ); do nix --print-build-logs --verbose --accept-flake-config --access-tokens '' \ - build --out-link ./result-"$target" ".#nixosConfigurations.${target}.config.system.build.toplevel" + build --out-link /var/lib/gitea-runner/tankstelle/.local/state/nix/results/"$target" ".#nixosConfigurations.${target}.config.system.build.toplevel" done nix --print-build-logs --verbose --accept-flake-config --access-tokens '' flake check