This commit is contained in:
@@ -85,7 +85,7 @@ jobs:
|
|||||||
echo "SHA256:"
|
echo "SHA256:"
|
||||||
sha256sum "$ISO_SRC"
|
sha256sum "$ISO_SRC"
|
||||||
|
|
||||||
- name: Prepare ${{ matrix.host }} ISO artifact (split if needed)
|
- name: Prepare ${{ matrix.host }} ISO artifact
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p iso-result/artifact
|
mkdir -p iso-result/artifact
|
||||||
@@ -98,8 +98,10 @@ jobs:
|
|||||||
ISO_BASENAME="${{ matrix.host }}-installer.iso"
|
ISO_BASENAME="${{ matrix.host }}-installer.iso"
|
||||||
ISO_DEST="iso-result/artifact/${ISO_BASENAME}"
|
ISO_DEST="iso-result/artifact/${ISO_BASENAME}"
|
||||||
cp "$ISO_SRC" "$ISO_DEST"
|
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")
|
SIZE=$(stat -c%s "$ISO_DEST")
|
||||||
if [ "$SIZE" -gt 240000000 ]; then
|
if [ "$SIZE" -gt 240000000 ]; then
|
||||||
echo "ISO is $SIZE bytes; splitting into 200MB parts for artifact upload."
|
echo "ISO is $SIZE bytes; splitting into 200MB parts for artifact upload."
|
||||||
split -b 200M -d -a 3 "$ISO_DEST" "${ISO_DEST}.part-"
|
split -b 200M -d -a 3 "$ISO_DEST" "${ISO_DEST}.part-"
|
||||||
|
|||||||
Reference in New Issue
Block a user