split iso into 500mb parts, may fix artifact download

This commit is contained in:
Redecorating 2021-07-10 19:14:24 +10:00
parent ad56eff73d
commit 07e804afd0
2 changed files with 25 additions and 4 deletions

View File

@ -35,9 +35,30 @@ jobs:
echo Version is $VER
echo "::set-output name=tag::${VER}"
- name: Upload iso artifact
- name: Upload iso artifact part 1
uses: actions/upload-artifact@v2
with:
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}
path: ${{ github.workspace }}/*.iso
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z01
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.z01
- name: Upload iso artifact part 2
uses: actions/upload-artifact@v2
with:
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z02
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.z02
- name: Upload iso artifact part 3
uses: actions/upload-artifact@v2
with:
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z03
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.z03
- name: Upload iso artifact part 4
uses: actions/upload-artifact@v2
with:
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.zip
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.zip
- name: Instructions for putting it back together
run: echo cat livecd-${{ steps.tag.outputs.tag }}-mbp.z01 livecd-${{ steps.tag.outputs.tag }}-mbp.z02 livecd-${{ steps.tag.outputs.tag }}-mbp.z03 livecd-${{ steps.tag.outputs.tag }}-mbp.zip

View File

@ -79,7 +79,7 @@ do
fi
### Zip iso and split it into multiple parts - github max size of release attachment is 2GB, where ISO is sometimes bigger than that
cd "${ROOT_PATH}"
zip -s 1500m "${ROOT_PATH}/output/livecd-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/ubuntu-20.04-${KERNEL_VERSION}-${ALTERNATIVE}.iso"
zip -s 500m "${ROOT_PATH}/output/livecd-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/ubuntu-20.04-${KERNEL_VERSION}-${ALTERNATIVE}.iso"
done
### Calculate sha256 sums of built ISO
sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256"