fix(CI): Rewrite for compatibility

This commit is contained in:
Tanguy Herbron 2024-06-25 14:21:24 +02:00
parent 7cc9690193
commit 1e7ea79be1

View File

@ -12,35 +12,42 @@ jobs:
runs-on: [arm64] runs-on: [arm64]
steps: steps:
- apt update - name: Create ISO
- apt install -y xorriso curl genisoimage cpio run: |
- curl -LO https://laotzu.ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso apt update
- xorriso -osirrox on -indev debian-11.6.0-amd64-netinst.iso -extract / ./isofiles apt install -y xorriso curl genisoimage cpio
- chmod +w -R isofiles/ curl -LO https://laotzu.ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso
- gunzip ./isofiles/install.amd/initrd.gz xorriso -osirrox on -indev debian-11.6.0-amd64-netinst.iso -extract / ./isofiles
- echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd chmod +w -R isofiles/
- cp bootloader-configs/*.cfg isofiles/isolinux gunzip ./isofiles/install.amd/initrd.gz
- gzip isofiles/install.amd/initrd echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd
- cd isofiles cp bootloader-configs/*.cfg isofiles/isolinux
# Execute the md5sum generation in a separated shell instance, because it returns a gzip isofiles/install.amd/initrd
# warning (file system loop) that makes the CI job error out cd isofiles
- sh -c "find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt" # Execute the md5sum generation in a separated shell instance, because it returns a
- cd .. # warning (file system loop) that makes the CI job error out
- chmod -w -R isofiles/ sh -c "find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt"
- genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o halis-debian-11.6.0-amd64.iso isofiles cd ..
artifacts: chmod -w -R isofiles/
paths: genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o halis-debian-11.6.0-amd64.iso isofiles
- halis-debian-11.3.0-amd64.iso - name: Upload ISO image
expire_in: 1 mos 8 days uses: actions/upload-artifact@v4
with:
name: halis-debian-11.6.0-amd64.iso
path: halis-debian-11.6.0-amd64.iso
build-arm64: build-arm64:
container:
image: debian:latest image: debian:latest
stage: build runs-on: [arm64]
script:
- apt update steps:
- apt install -y curl xz-utils file sudo - name: Create ISO
- ./arm64-build.sh run: |
artifacts: apt update
paths: apt install -y curl xz-utils file sudo
- ./*.img.xz ./arm64-build.sh
expire_in: 1 mos 8 days - name: Upload ISO image
uses: actions/upload-artifact@v4
with:
path: ./*.img.xz