diff --git a/.github/workflows/docker-publish-rootfs.yaml b/.github/workflows/docker-publish-rootfs.yaml index 071b1b7..1faa68a 100644 --- a/.github/workflows/docker-publish-rootfs.yaml +++ b/.github/workflows/docker-publish-rootfs.yaml @@ -26,6 +26,9 @@ jobs: jammy_x64, jammy_arm64, jammy_armhf, + noble_x64, + noble_arm64, + noble_armhf, ] steps: - name: Check out the repo diff --git a/.github/workflows/manual.yaml b/.github/workflows/manual.yaml index 5c37d45..6096148 100644 --- a/.github/workflows/manual.yaml +++ b/.github/workflows/manual.yaml @@ -30,6 +30,9 @@ jobs: jammy_x64, jammy_arm64, jammy_armhf, + noble_x64, + noble_arm64, + noble_armhf, ] steps: - name: Comment diff --git a/build.sh b/build.sh index c2fc941..572770f 100755 --- a/build.sh +++ b/build.sh @@ -98,6 +98,29 @@ case "$1" in CROSS=1 ;; + "noble_x64") + CHROOT=noble-amd64 + HOST=amd64 + DIST=noble + CROSS=0 + ;; + + "noble_arm64") + CHROOT=noble-amd64-arm64 + HOST=arm64 + DIST=noble + QEMU=qemu-aarch64 + CROSS=1 + ;; + + "noble_armhf") + CHROOT=noble-amd64-armhf + HOST=armhf + DIST=noble + QEMU=qemu-armhf + CROSS=1 + ;; + *) exit 1 esac @@ -109,6 +132,10 @@ else docker exec -t $1 bash -c "mk-sbuild --arch $HOST $DIST && sudo sed -i 's/^union-type=.*/union-type=overlay/' /etc/schroot/chroot.d/sbuild-$CHROOT && sbuild-update $CHROOT && sbuild-upgrade $CHROOT" fi +if [[ -n "${QEMU+x}" && "$CROSS" -eq 1 ]]; then + docker exec -t $1 bash -c "update-binfmts --enable $QEMU" +fi + # Install essential packages docker exec -t $1 sudo bash -c "cd / && schroot -c source:$CHROOT -u root -- apt-get install -y apt-transport-https ca-certificates"