From bd1db4821242e98db5904ecbff41e9c703c061e4 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Wed, 29 Apr 2026 16:13:38 +0200 Subject: [PATCH] ci: Run csmock with both default and rawhide mock config "default" is the latest stable release of Fedora, but newer gcc (and other tools) on rawhide can find more issues. But rawhide can also be unstable (and with more false-positives) so we want to run both and keep the results separate. --- .github/workflows/csmock.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/csmock.yml b/.github/workflows/csmock.yml index 41e630dc8..c431ab75c 100644 --- a/.github/workflows/csmock.yml +++ b/.github/workflows/csmock.yml @@ -1,7 +1,6 @@ name: Run static analysis using csmock env: - CSMOCK_CHROOTS: "default" CSMOCK_TOOLS: "clang cppcheck gcc" on: @@ -11,8 +10,14 @@ on: jobs: build: - name: csmock - runs-on: ubuntu-22.04 + name: csmock (${{ matrix.chroot }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + chroot: + - default + - fedora-rawhide env: CI_CONTAINER: libblockdev-ci-csmock steps: @@ -38,11 +43,11 @@ jobs: - name: Run csmock build in the container run: | - podman exec -it ${{ env.CI_CONTAINER }} bash -c "/ci/run_csmock_tests -c /ci/copr-builder.conf -p libblockdev-udisks -t ${{ env.CSMOCK_TOOLS }} -r ${{ env.CSMOCK_CHROOTS }}" + podman exec -it ${{ env.CI_CONTAINER }} bash -c "/ci/run_csmock_tests -c /ci/copr-builder.conf -p libblockdev-udisks -t ${{ env.CSMOCK_TOOLS }} -r ${{ matrix.chroot }}" - name: Upload the csmock logs if: always() uses: actions/upload-artifact@v7 with: - name: csmock_logs + name: csmock_logs_${{ matrix.chroot }} path: csmock_*/*