ci: Build and cache CI jobs individually
Some checks failed
CI / Check, build and cache Nix flake (push) Failing after 4m20s

This commit is contained in:
2024-11-26 12:29:44 +00:00
parent 6c98ef8944
commit f2271ec354
3 changed files with 21 additions and 14 deletions

View File

@@ -22,8 +22,10 @@ path="$1"
echo "Pushing $path to cache..."
nix copy --no-check-sigs --to "$STORE_URI" "$path"
echo "Updating profile..."
remote_cmd nix-env -p "$REMOTE_STORE"/nix/var/nix/profiles/nixfiles --set "$path"
if [ -n "$UPDATE_PROFILE" ]; then
echo "Updating profile..."
remote_cmd nix-env -p "$REMOTE_STORE"/nix/var/nix/profiles/nixfiles --set "$path"
echo "Collecting garbage..."
remote_cmd nix-collect-garbage --delete-older-than 30d
echo "Collecting garbage..."
remote_cmd nix-collect-garbage --delete-older-than 60d
fi