2024-06-25 12:00:48 +00:00
|
|
|
name: Build ISO images
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
release:
|
|
|
|
types: [released]
|
2024-06-25 12:37:33 +00:00
|
|
|
issue_comment:
|
2022-05-23 08:30:27 +00:00
|
|
|
|
2024-06-25 12:00:48 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-x86:
|
|
|
|
container:
|
2024-06-25 12:54:45 +00:00
|
|
|
image: node:22.3-bookworm
|
2024-06-25 12:00:48 +00:00
|
|
|
runs-on: [arm64]
|
2024-06-25 12:37:33 +00:00
|
|
|
# For manual trigger via Gitea while they implement the workflow_dispatch
|
|
|
|
if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run x86' || github.event.comment.body == '!actions run all' }}
|
2024-06-25 12:00:48 +00:00
|
|
|
|
|
|
|
steps:
|
2024-06-25 12:43:59 +00:00
|
|
|
- name: Checkout repository
|
2024-06-25 12:47:28 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-06-25 12:21:24 +00:00
|
|
|
- name: Create ISO
|
|
|
|
run: |
|
|
|
|
apt update
|
|
|
|
apt install -y xorriso curl genisoimage cpio
|
|
|
|
curl -LO https://laotzu.ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso
|
|
|
|
xorriso -osirrox on -indev debian-11.6.0-amd64-netinst.iso -extract / ./isofiles
|
|
|
|
chmod +w -R isofiles/
|
|
|
|
gunzip ./isofiles/install.amd/initrd.gz
|
|
|
|
echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd
|
|
|
|
cp bootloader-configs/*.cfg isofiles/isolinux
|
|
|
|
gzip isofiles/install.amd/initrd
|
|
|
|
cd isofiles
|
|
|
|
# Execute the md5sum generation in a separated shell instance, because it returns a
|
|
|
|
# warning (file system loop) that makes the CI job error out
|
|
|
|
sh -c "find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt"
|
|
|
|
cd ..
|
|
|
|
chmod -w -R isofiles/
|
|
|
|
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
|
|
|
|
- name: Upload ISO image
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: halis-debian-11.6.0-amd64.iso
|
|
|
|
path: halis-debian-11.6.0-amd64.iso
|
2022-05-23 16:15:27 +00:00
|
|
|
|
2024-06-25 12:00:48 +00:00
|
|
|
build-arm64:
|
2024-06-25 12:21:24 +00:00
|
|
|
container:
|
2024-06-25 12:54:45 +00:00
|
|
|
image: node:22.3-bookworm
|
2024-06-25 12:21:24 +00:00
|
|
|
runs-on: [arm64]
|
2024-06-25 12:37:33 +00:00
|
|
|
# For manual trigger via Gitea while they implement the workflow_dispatch
|
|
|
|
if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run arm' || github.event.comment.body == '!actions run all' }}
|
2024-06-25 12:21:24 +00:00
|
|
|
|
|
|
|
steps:
|
2024-06-25 12:43:59 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: https://github.com/actions/checkout@v4
|
2024-06-25 12:21:24 +00:00
|
|
|
- name: Create ISO
|
|
|
|
run: |
|
|
|
|
apt update
|
|
|
|
apt install -y curl xz-utils file sudo
|
|
|
|
./arm64-build.sh
|
|
|
|
- name: Upload ISO image
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
path: ./*.img.xz
|