From 47999f7f4fcd75f9dc636822d79aedf9084accbb Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 3 Aug 2026 15:52:21 -0500 Subject: [PATCH] ci: Workaround alpine CI build Alpine build is failing in CI apparently since the move to 7.1.x: error: objtool [signal.c:118]: init_signal_handler: sigaltstack failed: Out of memory make[4]: *** [/usr/src/linux-headers-7.1.5-0-stable/scripts/Makefile.build:289: mod-foo-a.o] Error 255 make[4]: *** Deleting file 'mod-foo-a.o' Workaround by passing -j1 when building the test modules. Signed-off-by: Lucas De Marchi Link: https://github.com/kmod-project/kmod/pull/454 --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18e72723..6e4f3385 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,7 @@ jobs: - container: 'alpine:latest' meson_setup: '-Db_sanitize=none' only_bits: '64' + modules_makeflags: "-j1" - container: 'archlinux:multilib-devel' - container: 'debian:bookworm-slim' meson_setup: '-Dzstd=disabled -Dxz=disabled -Dzlib=disabled -Dmbedtls=disabled' @@ -160,10 +161,15 @@ jobs: - name: test run: | do_test() { + unset MAKEFLAGS + if [[ -n "${{ matrix.skip_test }}" && "${{ matrix.skip_test }}" == "$2" ]]; then echo "::notice::Skipping tests" return 0 fi + if [[ -n "${{ matrix.modules_makeflags }}" + export MAKEFLAGS="${{ matrix.modules_makeflags" }}" + fi meson test -C "$1" || meson test -C "$1" --verbose } source .github/functions.sh -- 2.47.3