summaryrefslogtreecommitdiff
path: root/.github/workflows/build_test.sh
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-03-23 14:40:06 +0100
committerJan Janssen <medhefgo@web.de>2022-04-07 18:45:21 +0200
commit7fc60c071fbaeea55518ffbdd3a915c56cdebfb1 (patch)
treec2bbb34ec6d04b0d6ab7c6dcf89489c1b4048b6b /.github/workflows/build_test.sh
parent5ec92856113867771a2017c4da4909815326624f (diff)
downloadsystemd-7fc60c071fbaeea55518ffbdd3a915c56cdebfb1.tar.gz
ci: Add ia32 EFI multilib test
This makes sure that building ia32 EFI binaries on x86_64 works. We force gnu-efi support to ensure it's not skipped by accident and provide the lib32 dir manually, because clang does not support '--print-multi-os-directory', which is used to auto-detect it.
Diffstat (limited to '.github/workflows/build_test.sh')
-rwxr-xr-x.github/workflows/build_test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build_test.sh b/.github/workflows/build_test.sh
index 7a27a5f9f1..0c77be2a13 100755
--- a/.github/workflows/build_test.sh
+++ b/.github/workflows/build_test.sh
@@ -9,7 +9,7 @@ success() { echo >&2 -e "\033[32;1m$1\033[0m"; }
ARGS=(
"--optimization=0"
- "--optimization=s"
+ "--optimization=s -Dgnu-efi=true -Defi-cflags=-m32 -Defi-libdir=/usr/lib32"
"--optimization=3 -Db_lto=true -Ddns-over-tls=false"
"--optimization=3 -Db_lto=false"
"--optimization=3 -Ddns-over-tls=openssl"
@@ -27,6 +27,7 @@ PACKAGES=(
kbd
libblkid-dev
libbpf-dev
+ libc6-dev-i386
libcap-dev
libcurl4-gnutls-dev
libfdisk-dev
@@ -93,7 +94,7 @@ elif [[ "$COMPILER" == gcc ]]; then
# Latest gcc stack deb packages provided by
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
add-apt-repository -y ppa:ubuntu-toolchain-r/test
- PACKAGES+=("gcc-$COMPILER_VERSION")
+ PACKAGES+=("gcc-$COMPILER_VERSION" "gcc-$COMPILER_VERSION-multilib")
else
fatal "Unknown compiler: $COMPILER"
fi