fix iso
Build NixOS ISOs / build-iso (buildbox) (push) Successful in 5m33s

This commit is contained in:
2026-06-18 00:14:59 -04:00
parent aedc15ed83
commit 33d4aaeb1b
+1 -14
View File
@@ -100,20 +100,7 @@ jobs:
cp "$ISO_SRC" "$ISO_DEST"
# Emit sha256 as a separate file and print to log
sha256sum "$ISO_DEST" | tee "${ISO_DEST}.sha256"
SIZE=$(stat -c%s "$ISO_DEST")
if [ "$SIZE" -gt 240000000 ]; then
echo "ISO is $SIZE bytes; splitting into 200MB parts for artifact upload."
split -b 200M -d -a 3 "$ISO_DEST" "${ISO_DEST}.part-"
sha256sum "$ISO_DEST" > "${ISO_DEST}.sha256"
rm "$ISO_DEST"
printf "Reassemble:\n cat %s.part-* > %s\nVerify:\n sha256sum -c %s.sha256\n" \
"$ISO_BASENAME" "$ISO_BASENAME" "$ISO_BASENAME" \
> "iso-result/artifact/README.txt"
else
sha256sum "$ISO_DEST" > "${ISO_DEST}.sha256"
fi
- name: Upload ${{ matrix.host }} ISO artifact
if: ${{ github.event_name != 'workflow_dispatch' || inputs.upload-artifact }}
uses: actions/upload-artifact@v3