ci/cache: Collect garbage before pushes
Update docs / update (push) Failing after 1m3s
CI / Check, build and cache nixfiles (push) Failing after 26m9s

Run retention cleanup before uploading build results so inode
exhaustion cannot prevent CI from reaching its only garbage-collection
step.
This commit is contained in:
2026-08-24 22:55:44 +01:00
parent 92855606a4
commit 1a9c601c2b
3 changed files with 19 additions and 3 deletions
+4
View File
@@ -37,6 +37,10 @@ jobs:
env:
HARMONIA_SSH_KEY: ${{ secrets.HARMONIA_SSH_KEY }}
run: |
# Make room before pushing so a full cache cannot prevent the GC at
# the end of a successful run from ever being reached.
ci/push-to-cache.sh --gc
nix eval --json --apply "builtins.attrNames" .#ci.x86_64-linux | jq -cr '.[]' | while read job; do
echo "::group::Build $job"
nix build --no-link .#ci.x86_64-linux."$job"