Skip to content

Commit 31cc7d1

Browse files
committed
add nobel
ubuntu24.04 is released. Signed-off-by: JeanTracker <[email protected]>
1 parent 5f66a56 commit 31cc7d1

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/docker-publish-rootfs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
jammy_x64,
2727
jammy_arm64,
2828
jammy_armhf,
29+
noble_x64,
30+
noble_arm64,
31+
noble_armhf,
2932
]
3033
steps:
3134
- name: Check out the repo

.github/workflows/manual.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
jammy_x64,
3131
jammy_arm64,
3232
jammy_armhf,
33+
noble_x64,
34+
noble_arm64,
35+
noble_armhf,
3336
]
3437
steps:
3538
- name: Comment

build.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,29 @@ case "$1" in
9898
CROSS=1
9999
;;
100100

101+
"noble_x64")
102+
CHROOT=noble-amd64
103+
HOST=amd64
104+
DIST=noble
105+
CROSS=0
106+
;;
107+
108+
"noble_arm64")
109+
CHROOT=noble-amd64-arm64
110+
HOST=arm64
111+
DIST=noble
112+
QEMU=qemu-aarch64
113+
CROSS=1
114+
;;
115+
116+
"noble_armhf")
117+
CHROOT=noble-amd64-armhf
118+
HOST=armhf
119+
DIST=noble
120+
QEMU=qemu-armhf
121+
CROSS=1
122+
;;
123+
101124
*)
102125
exit 1
103126
esac
@@ -109,6 +132,10 @@ else
109132
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"
110133
fi
111134

135+
if [[ -n "${QEMU+x}" && "$CROSS" -eq 1 ]]; then
136+
docker exec -t $1 bash -c "update-binfmts --enable $QEMU"
137+
fi
138+
112139
# Install essential packages
113140
docker exec -t $1 sudo bash -c "cd / && schroot -c source:$CHROOT -u root -- apt-get install -y apt-transport-https ca-certificates"
114141

0 commit comments

Comments
 (0)