]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
ci: Drop container objects for other workflows
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 12 Mar 2025 15:53:45 +0000 (10:53 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 25 Mar 2025 19:01:26 +0000 (14:01 -0500)
Commit 23b45fc385c7 ("ci: Drop container object") dropped the container
object for the main workflow. Do the same for the other workflows.
Even if they don't need a matrix (since they run in just one
configuration), keep using it to make the structure common to all
workflows.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/321
.github/workflows/codeql.yml
.github/workflows/coverage.yml

index 885323e19ab0114d5cb812663a8547ffc269fb05..a9b2cb154b5915a1460c4b91199f4828b60fb59d 100644 (file)
@@ -27,12 +27,12 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        container:
-          - name: 'ubuntu:24.04'
+        include:
+          - container: 'ubuntu:24.04'
             meson_setup: '-D b_sanitize=none -D build-tests=false'
 
     container:
-      image: ${{ matrix.container.name }}
+      image: ${{ matrix.container }}
 
     steps:
       - name: Sparse checkout the local actions
@@ -63,7 +63,7 @@ jobs:
       - name: Build
         run: |
           mkdir build && cd build
-          meson setup --native-file ../build-dev.ini ${{ matrix.container.meson_setup }} . ..
+          meson setup --native-file ../build-dev.ini ${{ matrix.meson_setup }} . ..
           meson compile
 
       - name: Perform CodeQL Analysis
index 72a6d5ec135126b90826bcfaf2a7c94c5e67b1bd..c0564199fd60a83973a8c65d1297f2352718020e 100644 (file)
@@ -20,15 +20,16 @@ jobs:
   analyze:
     name: Analyze
     runs-on: ubuntu-24.04
+
     strategy:
       fail-fast: false
       matrix:
-        container:
-          - name: 'ubuntu:24.04'
+        include:
+          - container: 'ubuntu:24.04'
             meson_setup: '-D b_sanitize=none -D b_coverage=true'
 
     container:
-      image: ${{ matrix.container.name }}
+      image: ${{ matrix.container }}
 
     steps:
       - name: Sparse checkout the local actions
@@ -53,7 +54,7 @@ jobs:
       - name: Build
         run: |
           mkdir build && cd build
-          meson setup --native-file ../build-dev.ini ${{ matrix.container.meson_setup }} . ..
+          meson setup --native-file ../build-dev.ini ${{ matrix.meson_setup }} . ..
           meson compile
           meson test
           ninja coverage-xml