Skip to content

Commit d29f181

Browse files
committed
ci: add bpftool workaround to coverity too
1 parent a6836cf commit d29f181

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/coverity.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2626
# Reuse the setup phase of the unit test script to avoid code duplication
2727
- name: Install build dependencies
28-
run: sudo -E .github/workflows/unit-tests.sh SETUP
28+
run: |
29+
sudo -E .github/workflows/unit-tests.sh SETUP
30+
# TODO: drop after we switch to ubuntu 26.04
31+
bpftool_binary=$(find /usr/lib/linux-tools/ /usr/lib/linux-tools-* -name 'bpftool' -perm /u=x 2>/dev/null | sort -r | head -n1)
32+
if [ -n "$bpftool_binary" ]; then
33+
sudo rm -f /usr/{bin,sbin}/bpftool
34+
sudo ln -s "$bpftool_binary" /usr/bin/
35+
fi
2936
- name: Build & upload the results
3037
run: tools/coverity.sh

0 commit comments

Comments
 (0)