]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: install packages available only on x86_64/arm64 on those arches only
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 3 Jul 2025 21:57:46 +0000 (22:57 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 3 Jul 2025 21:57:46 +0000 (22:57 +0100)
.github/workflows/build_test.sh
.github/workflows/unit_tests.sh

index d070410f80d15b8cc7b6892cdd8827c46ed21561..2662597b93deb4284814a029a43b9525926acac7 100755 (executable)
@@ -43,7 +43,6 @@ PACKAGES=(
     libqrencode-dev
     libssl-dev
     libtss2-dev
-    libxen-dev
     libxkbcommon-dev
     libxtables-dev
     libzstd-dev
@@ -69,6 +68,10 @@ COMPILER_VERSION="${COMPILER_VERSION:?}"
 LINKER="${LINKER:?}"
 RELEASE="$(lsb_release -cs)"
 
+if [ "$(uname -m)" = "aarch64" ] || [ "$(uname -m)" = "x86_64" ]; then
+    PACKAGES+=(libxen-dev)
+fi
+
 # Note: As we use postfixed clang/gcc binaries, we need to override $AR
 #       as well, otherwise meson falls back to ar from binutils which
 #       doesn't work with LTO
@@ -109,7 +112,11 @@ elif [[ "$COMPILER" == gcc ]]; then
         sudo add-apt-repository -y --no-update ppa:ubuntu-toolchain-r/test
     fi
 
-    PACKAGES+=("gcc-$COMPILER_VERSION" "gcc-$COMPILER_VERSION-multilib")
+    PACKAGES+=("gcc-$COMPILER_VERSION")
+    if [ "$(uname -m)" = "x86_64" ]; then
+        # Only needed for ia32 EFI builds
+        PACKAGES+=("gcc-$COMPILER_VERSION-multilib")
+    fi
 else
     fatal "Unknown compiler: $COMPILER"
 fi
index 477995eafa4282479c7e087dfdbeef72e65d0fee..7bebea682b3cc68a0ba7c29471b617e3a53c1a0e 100755 (executable)
@@ -19,12 +19,11 @@ ADDITIONAL_DEPS=(
     libxkbcommon-dev
     libzstd-dev
     python3-libevdev
-    python3-pefile
+    python3-pip
     python3-pyelftools
     python3-pyparsing
     python3-pytest
     rpm
-    systemd-boot-efi
     zstd
 )
 
@@ -43,6 +42,11 @@ set -ex
 
 MESON_ARGS=()
 
+if [ "$(uname -m)" = "aarch64" ] || [ "$(uname -m)" = "x86_64" ]; then
+    ADDITIONAL_DEPS+=(python3-pefile)
+    ADDITIONAL_DEPS+=(systemd-boot-efi)
+fi
+
 # (Re)set the current oom-{score-}adj. For some reason root on GH actions is able to _decrease_
 # its oom-score even after dropping all capabilities (including CAP_SYS_RESOURCE), until the
 # score is explicitly changed after sudo. No idea what's going on, but it breaks