Skip to content

Commit

Permalink
ci: Bump clang/LLVM version on Ubuntu 20.04
Browse files Browse the repository at this point in the history
Due to recent changes in pid_iter.bpf.c, we need support for the
__builtin_preserve_enum_value build-in, which is not available in the
version that ships on Ubuntu 20.04 runners (clang 11). Let's use
clang-12, which is also installed.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
  • Loading branch information
qmonnet committed Jul 12, 2023
1 parent 1005776 commit 88156af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
with:
submodules: true

- name: Use clang-12 and not clang-11 for older Ubuntu
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get remove -y clang-11 llvm-11
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 50
- name: Install dependencies
run: |
sudo apt-get update
Expand Down

0 comments on commit 88156af

Please sign in to comment.