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
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
- 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
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
- 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