From: Lucas De Marchi Date: Mon, 6 Jan 2025 16:37:56 +0000 (-0600) Subject: ci: Add pipeline to test linking with lld X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00d0c19a379a9621bac097f755a98601c9c7cdd4;p=thirdparty%2Fkmod.git ci: Add pipeline to test linking with lld Test linking with lld to avoid issues like https://github.com/kmod-project/kmod/issues/269 Signed-off-by: Lucas De Marchi --- diff --git a/.github/actions/setup-archlinux/action.yml b/.github/actions/setup-archlinux/action.yml index 5197f2ae..75d2b741 100644 --- a/.github/actions/setup-archlinux/action.yml +++ b/.github/actions/setup-archlinux/action.yml @@ -24,5 +24,6 @@ runs: git \ gtk-doc \ linux-headers \ + lld \ meson \ scdoc diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20f298d8..59389f1f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -97,6 +97,13 @@ jobs: x32: 'true' meson_setup: '-Dzstd=disabled -Dxz=disabled -Dzlib=disabled -Dopenssl=disabled' + # Special configurations + + # Variant with lld as linker + - compiler: 'clang' + container: 'archlinux:multilib-devel' + linker: 'lld' + container: image: ${{ matrix.container }} @@ -158,6 +165,10 @@ jobs: export CC="$CC -m32" fi + if [[ -n "${{ matrix.linker }}" ]]; then + export CC_LD="${{ matrix.linker }}" + fi + meson setup --native-file build-dev.ini $setup_options build - name: build