]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
ci: add clang permutation
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 9 Oct 2024 15:26:25 +0000 (16:26 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 18 Oct 2024 18:22:12 +0000 (13:22 -0500)
With the clang issues resolved, let's add it to the CI matrix so fewer
issues get it.

Note: Fedora 40 doesn't ship the shared sanitizer library, while older
Fedora versions did. Fedora 41 will be coming with LLVM 19, which will
have the binary (seemingly with different name :facepalm:).

Let's leave the Fedora/clang infra in and just mask it out sanitizers
for the next month or so, until the new version comes out. Then we can
re-evaluate.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/172
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.github/actions/setup-alpine/action.yml
.github/actions/setup-archlinux/action.yml
.github/actions/setup-debian/action.yml
.github/actions/setup-fedora/action.yml
.github/actions/setup-ubuntu/action.yml
.github/workflows/main.yml

index 33deff7a09f836b54a6035a314db55f7daceb886..4796b0e09097c10c409701e9ad2e7337ad0ac23e 100644 (file)
@@ -17,6 +17,7 @@ runs:
           automake \
           bash \
           build-base \
+          clang \
           git \
           gtk-doc \
           libtool \
index c2425d4be92794d0153356258a179ce1176fa24f..5197f2ae71b3c3150943963907abb0fef51e0006 100644 (file)
@@ -20,6 +20,7 @@ runs:
         pacman --noconfirm -Sy archlinux-keyring
 
         pacman --noconfirm -Su \
+          clang \
           git \
           gtk-doc \
           linux-headers \
index f79ed109b14d056ed750ced54154dd09b1c16fea..ddb8939af96b74c1d42032d9cd6ad64eb1c0cabc 100644 (file)
@@ -16,6 +16,7 @@ runs:
           autoconf \
           automake \
           build-essential \
+          clang \
           gcc-multilib \
           git \
           gtk-doc-tools \
index 586471876613bd55fc29c304536f4acda05944cc..1bc6b7d15a06f6e75ac1988c104691f868631371 100644 (file)
@@ -15,6 +15,8 @@ runs:
         dnf install -y \
           autoconf \
           automake \
+          clang \
+          compiler-rt \
           gcc \
           git \
           gtk-doc \
index b6514789ca3a4dd03e44d4da0760573e4ae39b53..d1b13c6de14b6a6c63d205fbabdecdb78f40f3db 100644 (file)
@@ -16,6 +16,7 @@ runs:
           autoconf \
           automake \
           build-essential \
+          clang \
           gcc-multilib \
           git \
           gtk-doc-tools \
index 041c642430bfc25fd9c9c0d7cc62a5f2db7d0f54..367190ef6a772c3dc2b4ea7dbcc5acfc94329241 100644 (file)
@@ -18,11 +18,14 @@ permissions:
 
 jobs:
   build:
+    env:
+      CC: ${{ matrix.compiler }}
     runs-on: ubuntu-latest
     strategy:
       fail-fast: false
       matrix:
         build: ['meson', 'autotools']
+        compiler: ['clang','gcc']
         container:
           - name: 'ubuntu:22.04'
             multilib: 'true'
@@ -31,6 +34,7 @@ jobs:
           - name: 'archlinux:multilib-devel'
             multilib: 'true'
           - name: 'fedora:latest'
+            meson_setup: '-D b_sanitize=none'
           - name: 'alpine:latest'
             meson_setup: '-D docs=false -D b_sanitize=none'
           - name: 'debian:unstable'
@@ -109,7 +113,7 @@ jobs:
 
       - name: configure (32bit) (meson)
         if: ${{ matrix.build == 'meson' && matrix.container.multilib == 'true' }}
-        run: mkdir build32 && cd build32 && CC='gcc -m32' meson setup . ..
+        run: mkdir build32 && cd build32 && CC="$CC -m32" meson setup . ..
 
       - name: build (32bit) (meson)
         if: ${{ matrix.build == 'meson' && matrix.container.multilib == 'true' }}