From 87d5977243880b1a934ad2dbca820167a41e9674 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Sun, 30 Aug 2026 04:55:20 -0400 Subject: [PATCH] ci(macos): CPATH/LIBRARY_PATH to brew prefix so feather finds boost headers monero's static libs built fine, but the feather target includes monero headers pulling boost/variant.hpp, and clang doesn't search /opt/homebrew/include by default (modern BoostConfig leaves Boost_INCLUDE_DIRS empty). --- .gitea/workflows/build-macos.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/build-macos.yml b/.gitea/workflows/build-macos.yml index 5f539d92..aee76321 100644 --- a/.gitea/workflows/build-macos.yml +++ b/.gitea/workflows/build-macos.yml @@ -81,6 +81,12 @@ jobs: - name: build run: | export PATH="/opt/homebrew/bin:$PATH" + # clang does not search /opt/homebrew/include by default; the feather + # target pulls monero headers that include boost, and modern Boost's + # CMake config leaves Boost_INCLUDE_DIRS empty. CPATH/LIBRARY_PATH make + # every linked brew header/lib findable without per-dep flag surgery. + export CPATH="$(brew --prefix)/include" + export LIBRARY_PATH="$(brew --prefix)/lib" mkdir -p build && cd build cmake -DWITH_SCANNER=OFF -DUSE_DEVICE_TREZOR=OFF -DWOWNEROD_DIR=/tmp/wownerod-embed -DTOR_DIR=/tmp/tor-embed -DTOR_VERSION="$TOR_VERSION" -DCMAKE_PREFIX_PATH="$(brew --prefix qt)" .. cmake --build . -j "$(sysctl -n hw.ncpu)"