Skip to content

Commit

Permalink
Add Ubuntu 24.04 and 24.10 build checks
Browse files Browse the repository at this point in the history
Signed-off-by: Lisanna Dettwyler <[email protected]>
  • Loading branch information
lisanna-dettwyler committed Oct 4, 2024
1 parent e0bae5a commit c5ebca2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/docker/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,27 @@ ARG VMIN
SHELL ["/bin/bash", "-e", "-c"]

RUN <<EOF
sed -i 's/^deb/deb [arch=amd64]/' /etc/apt/sources.list
source /etc/lsb-release
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME} main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-backports main restricted universe multiverse" >> /etc/apt/sources.list
if ((VMAJ < 24)); then
sed -i 's/^deb/deb [arch=amd64]/' /etc/apt/sources.list
cat >> /etc/apt/sources.list <<EOF2
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME} main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-security main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-backports main restricted universe multiverse
EOF2
else
sed -i '/^Components:/a Architectures: amd64' /etc/apt/sources.list.d/ubuntu.sources
cat >> /etc/apt/sources.list.d/ubuntu.sources <<EOF2

types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: ${DISTRIB_CODENAME} ${DISTRIB_CODENAME}-updates ${DISTRIB_CODENAME}-security ${DISTRIB_CODENAME}-backports
Components: main universe restricted multiverse
Architectures: arm64
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
EOF2
fi
dpkg --add-architecture arm64
EOF

Expand All @@ -37,9 +52,6 @@ apt-get install -o Dpkg::Options::="--force-overwrite" -y \
ninja-build \
gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu \
$(((VMAJ >= 20)) && echo \
gcc-10-aarch64-linux-gnu \
g++-10-aarch64-linux-gnu) \
libc6:arm64 \
libstdc++6:arm64 \
libpapi-dev \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
os: [
{name: ubuntu, vmaj: 20, vmin: '04'},
{name: ubuntu, vmaj: 22, vmin: '04'},
{name: ubuntu, vmaj: 24, vmin: '04'},
{name: ubuntu, vmaj: 24, vmin: '10'},
{name: sles, vmaj: 15, vmin: 2},
{name: sles, vmaj: 15, vmin: 3},
{name: sles, vmaj: 15, vmin: 4},
Expand Down

0 comments on commit c5ebca2

Please sign in to comment.