From 88156afd0fb486fe1a54cefe0dd3b0b744fcec61 Mon Sep 17 00:00:00 2001 From: Quentin Monnet Date: Wed, 12 Jul 2023 14:56:57 +0100 Subject: [PATCH] ci: Bump clang/LLVM version on Ubuntu 20.04 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 --- .github/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7fcda866..6d24cf6a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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