From feb9483742b2a63f4dc7acfc8091419a8a53bc2a Mon Sep 17 00:00:00 2001 From: Michal R Date: Wed, 10 Dec 2025 15:11:27 +0100 Subject: [PATCH] ci: Add LLVM to PATH on macOS Our new build.rs in bpf-linker expects `llvm-config` to be present in `PATH` in order to find the prefix with LLVM libraries. --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc0b28c..075f46e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,8 +82,11 @@ jobs: with: tool: cargo-generate - - run: brew update && brew install filosottile/musl-cross/musl-cross llvm - if: runner.os == 'macos' + - if: runner.os == 'macos' + run: | + set -euxo pipefail + brew update && brew install filosottile/musl-cross/musl-cross llvm + echo $(brew --prefix llvm)/bin >> $GITHUB_PATH - run: cargo install bpf-linker --git https://github.com/aya-rs/bpf-linker.git --no-default-features --features llvm-21 if: runner.os == 'macos'