Skip to content

Commit

Permalink
ci: Use apt repository with LLVM 18 explicitly
Browse files Browse the repository at this point in the history
The unversioned one is suffering from LLVM 19 => 20 migration issues,
see llvm/llvm-project#100466.
  • Loading branch information
vadorovsky committed Jul 25, 2024
1 parent 956dd01 commit a167554
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

env:
CARGO_TERM_COLOR: always
LLVM_VERSION: 18

jobs:
lint:
Expand Down Expand Up @@ -206,9 +207,10 @@ jobs:
run: |
set -euxo pipefail
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
echo deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main | sudo tee /etc/apt/sources.list.d/llvm.list
echo deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ env.LLVM_VERSION }} main | sudo tee /etc/apt/sources.list.d/llvm.list
sudo apt update
sudo apt -y install clang gcc-multilib llvm locate qemu-system-{arm,x86}
sudo apt -y install clang-${{ env.LLVM_VERSION }} gcc-multilib llvm-${{ env.LLVM_VERSION }} locate qemu-system-{arm,x86}
echo /usr/lib/llvm-${{ env.LLVM_VERSION }}/bin >> $GITHUB_PATH
- name: bpf-linker
if: runner.os == 'Linux'
Expand Down

0 comments on commit a167554

Please sign in to comment.