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 upgrade it.

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

- name: Update APT repositories
run: sudo apt-get update

- name: Upgrade clang for older Ubuntu
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get remove -y clang-11 llvm-11
sudo apt-get install -y clang-12 llvm-12 llvm-12-dev
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libbfd-dev libcap-dev libelf-dev libiberty-dev python3-docutils
# clang/LLVM are already installed, but we're missing some aliases.
Expand Down

0 comments on commit 9a15f05

Please sign in to comment.