Skip to content

Commit 21e010f

Browse files
Add Ubuntu 24.04 and 24.10 builds
1 parent 1eb4998 commit 21e010f

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

.github/docker/ubuntu.Dockerfile

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,27 @@ ARG VMIN
1010
SHELL ["/bin/bash", "-e", "-c"]
1111

1212
RUN <<EOF
13-
sed -i 's/^deb/deb [arch=amd64]/' /etc/apt/sources.list
1413
source /etc/lsb-release
15-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME} main restricted universe multiverse" >> /etc/apt/sources.list
16-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-updates main restricted universe multiverse" >> /etc/apt/sources.list
17-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-security main restricted universe multiverse" >> /etc/apt/sources.list
18-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-backports main restricted universe multiverse" >> /etc/apt/sources.list
14+
if ((VMAJ < 24)); then
15+
sed -i 's/^deb/deb [arch=amd64]/' /etc/apt/sources.list
16+
cat >> /etc/apt/sources.list <<EOF2
17+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME} main restricted universe multiverse
18+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-updates main restricted universe multiverse
19+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-security main restricted universe multiverse
20+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-backports main restricted universe multiverse
21+
EOF2
22+
else
23+
sed -i '/^Components:/a Architectures: amd64' /etc/apt/sources.list.d/ubuntu.sources
24+
cat >> /etc/apt/sources.list.d/ubuntu.sources <<EOF2
25+
26+
types: deb
27+
URIs: http://ports.ubuntu.com/ubuntu-ports/
28+
Suites: ${DISTRIB_CODENAME} ${DISTRIB_CODENAME}-updates ${DISTRIB_CODENAME}-security ${DISTRIB_CODENAME}-backports
29+
Components: main universe restricted multiverse
30+
Architectures: arm64
31+
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
32+
EOF2
33+
fi
1934
dpkg --add-architecture arm64
2035
EOF
2136

@@ -32,27 +47,11 @@ apt-get install -y \
3247
curl \
3348
elfutils \
3449
file \
35-
$(if [[ "${VMAJ}.${VMIN}" != "19.10" ]]; then echo \
3650
gcc-aarch64-linux-gnu \
3751
g++-aarch64-linux-gnu \
38-
$(if ((VMAJ >= 20)); then echo \
39-
gcc-10-aarch64-linux-gnu \
40-
g++-10-aarch64-linux-gnu; fi) \
4152
libc6:arm64 \
42-
libstdc++6:arm64; fi) \
53+
libstdc++6:arm64 \
4354
git \
4455
ninja-build
4556
rm -rf /var/lib/apt/lists/*
46-
EOF
47-
48-
# Make newest version of aarch64 toolchain the default and enable switching.
49-
RUN <<EOF
50-
shopt -s extglob
51-
for tool in $(ls /usr/bin/aarch64-linux-gnu-*([a-z\-+])); do
52-
for v in $(ls /usr/bin/aarch64-linux-gnu-* | grep -o [0-9]*$ | sort | uniq); do
53-
if [[ -f ${tool}-${v} ]]; then
54-
update-alternatives --install ${tool} $(basename ${tool}) ${tool}-${v} ${v}
55-
fi
56-
done
57-
done
58-
EOF
57+
EOF

.github/workflows/build-multi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
os: [
5050
{name: ubuntu, vmaj: 20, vmin: '04'},
5151
{name: ubuntu, vmaj: 22, vmin: '04'},
52+
{name: ubuntu, vmaj: 24, vmin: '04'},
53+
{name: ubuntu, vmaj: 24, vmin: '10'},
5254
{name: sles, vmaj: 15, vmin: 2},
5355
{name: sles, vmaj: 15, vmin: 3},
5456
{name: sles, vmaj: 15, vmin: 4},

0 commit comments

Comments
 (0)