]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
ci: Workaround alpine CI build
authorLucas De Marchi <demarchi@kernel.org>
Mon, 3 Aug 2026 20:52:21 +0000 (15:52 -0500)
committerLucas De Marchi <ldemarchi@kernel.org>
Wed, 5 Aug 2026 13:09:15 +0000 (08:09 -0500)
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 <demarchi@kernel.org>
Link: https://github.com/kmod-project/kmod/pull/454
.github/workflows/main.yml

index 18e72723ca17a57b8b1f30212607c99441f4e857..6e4f3385cf6302ad9cbaa90f227d74be02a73d88 100644 (file)
@@ -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