mirror of https://github.com/marcosfad/mbp-ubuntu
split iso into 500mb parts, may fix artifact download
This commit is contained in:
parent
ad56eff73d
commit
07e804afd0
|
@ -35,9 +35,30 @@ jobs:
|
||||||
echo Version is $VER
|
echo Version is $VER
|
||||||
echo "::set-output name=tag::${VER}"
|
echo "::set-output name=tag::${VER}"
|
||||||
|
|
||||||
- name: Upload iso artifact
|
- name: Upload iso artifact part 1
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}
|
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z01
|
||||||
path: ${{ github.workspace }}/*.iso
|
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
|
||||||
|
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -79,7 +79,7 @@ do
|
||||||
fi
|
fi
|
||||||
### Zip iso and split it into multiple parts - github max size of release attachment is 2GB, where ISO is sometimes bigger than that
|
### 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}"
|
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
|
done
|
||||||
### Calculate sha256 sums of built ISO
|
### Calculate sha256 sums of built ISO
|
||||||
sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256"
|
sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256"
|
||||||
|
|
Loading…
Reference in New Issue