|
|
|
|
@ -78,9 +78,6 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
components: clippy,miri,rustfmt,rust-src
|
|
|
|
|
|
|
|
|
|
# Installed *after* nightly so it is the default.
|
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
|
|
|
|
|
|
- uses: taiki-e/install-action@v2
|
|
|
|
|
@ -333,6 +330,10 @@ jobs:
|
|
|
|
|
brew bundle
|
|
|
|
|
echo $(brew --prefix curl)/bin >> $GITHUB_PATH
|
|
|
|
|
echo $(brew --prefix llvm)/bin >> $GITHUB_PATH
|
|
|
|
|
# Point bpf-linker's build.rs to the brew prefixes with static
|
|
|
|
|
# libraries it needs.
|
|
|
|
|
echo "CXXSTDLIB_PATH=$(brew --prefix llvm)/lib/c++" >> $GITHUB_ENV
|
|
|
|
|
echo "ZLIB_PATH=$(brew --prefix zlib)/lib" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
# https://github.com/actions/setup-python/issues/577
|
|
|
|
|
find /usr/local/bin -type l -exec sh -c 'readlink -f "$1" \
|
|
|
|
|
@ -382,6 +383,7 @@ jobs:
|
|
|
|
|
;;
|
|
|
|
|
macOS)
|
|
|
|
|
target=${arch}-apple-darwin
|
|
|
|
|
echo "LLVM_LINK_FEATURE=llvm-link-static" >> $GITHUB_ENV
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
echo "::error::Unsupported runner OS: ${{ runner.os }}"
|
|
|
|
|
@ -395,8 +397,13 @@ jobs:
|
|
|
|
|
# NB: rustc doesn't ship libLLVM.so on macOS, so disable proxying (default feature). We also
|
|
|
|
|
# --force so that bpf-linker gets always relinked against the latest LLVM downloaded above.
|
|
|
|
|
#
|
|
|
|
|
# Add the downloaded LLVM to PATH for this build step.
|
|
|
|
|
#
|
|
|
|
|
# Do this on all system (not just macOS) to avoid relying on rustc-provided libLLVM.so.
|
|
|
|
|
- run: cargo install --git https://github.com/aya-rs/bpf-linker.git bpf-linker --no-default-features --features llvm-21 --force
|
|
|
|
|
- run: |
|
|
|
|
|
cargo install \
|
|
|
|
|
--git https://github.com/aya-rs/bpf-linker.git bpf-linker \
|
|
|
|
|
--no-default-features --features "llvm-21,${LLVM_LINK_FEATURE}" --force
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
with:
|
|
|
|
|
|