]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: add bpftool workaround to coverity too
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 18 Oct 2025 13:23:59 +0000 (14:23 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 18 Oct 2025 14:43:06 +0000 (15:43 +0100)
.github/workflows/coverity.yml

index b77a1a13909c7d63c285e3f4889e506d65c0f532..9cf7a9f2465d26ce12108e096f924170d88a640a 100644 (file)
@@ -25,6 +25,13 @@ jobs:
         uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
       # Reuse the setup phase of the unit test script to avoid code duplication
       - name: Install build dependencies
-        run: sudo -E .github/workflows/unit-tests.sh SETUP
+        run: |
+          sudo -E .github/workflows/unit-tests.sh SETUP
+          # TODO: drop after we switch to ubuntu 26.04
+          bpftool_binary=$(find /usr/lib/linux-tools/ /usr/lib/linux-tools-* -name 'bpftool' -perm /u=x 2>/dev/null | sort -r | head -n1)
+          if [ -n "$bpftool_binary" ]; then
+            sudo rm -f /usr/{bin,sbin}/bpftool
+            sudo ln -s "$bpftool_binary" /usr/bin/
+          fi
       - name: Build & upload the results
         run: tools/coverity.sh