Skip to content

Commit

Permalink
add collect garbage
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvapiav committed Mar 27, 2024
1 parent b466c9a commit dfd9fd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/build-action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,18 @@ nix flake show
cachix watch-exec fmo-os -- \
nix build -L --accept-flake-config .#$BUILD_TARGET

echo "Nix collect garbage"
nix-collect-garbage

echo "Copy results"
out=$(readlink -f result/iso/nixos.iso)
mkdir -p ./result_to_upload/
cp $out ./result_to_upload/nixos.iso
out=$(ls ./result_to_upload/nixos.iso)
echo "out: $out"
echo "out=$out" >> $GITHUB_OUTPUT

echo "Validate out"
if [ -z "$out" ]
then
echo "There is no image has been built. Fail"
Expand Down

0 comments on commit dfd9fd5

Please sign in to comment.