ci: debug (wip) try to prevent gc with nix profiles
Flake checks / Check (pull_request) Failing after 13m38s Details

teutat3s 2024-04-23 12:56:37 +02:00
parent a9393cecfd
commit ef85796bc9
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 15 additions and 1 deletions

View File

@ -32,7 +32,7 @@ jobs:
cache-${{ runner.os }}-nix-store-
gc-linux: true
gc-max-store-size-linux: 20000000000
gc-max-store-size-linux: 10000000000
purge-caches: true
purge-key: cache-${{ runner.os }}-nix-store-
@ -49,3 +49,17 @@ jobs:
- name: Run flake checks
run: |
nix --print-build-logs --verbose --accept-flake-config --access-tokens '' flake check
# Prevent cache garbage collection
for target in $(nix flake show --json --all-systems | jq '
["nixosConfigurations"] as $tops |
$tops[] as $top |
.[$top] |
to_entries[] |
.key as $hostname |
.value |
keys[] |
"\($top).\($hostname).config.system.build.toplevel"
' | tr -d '"'
); do
nix profile install .#$target
done