This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user