aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2024-06-06 12:46:04 +0200
committerNRK <nrk@disroot.org>2024-06-06 12:50:15 +0200
commit420a0a245591ea73f86ebfb90de207a8e67e6cca (patch)
tree04e1015446a9d7b4bd3d2933cf8722269517d07e
parent2a62683e6084126b1bb70dd9a1608d04a6547207 (diff)
downloadnsxiv-420a0a245591ea73f86ebfb90de207a8e67e6cca.tar.zst
ci: fix macos build
for whatever reason, the path where homebrew installs headers and libraries are no longer being searched by default. work around it by manually specifying them with -I and -L.
-rw-r--r--.github/workflows/build.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6b6af3f..054dd94 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -47,7 +47,11 @@ jobs:
- name: build
run: |
# libinotify-kqueue isn't available on homebrew
- make clean && make -s OPT_DEP_DEFAULT=1 HAVE_INOTIFY=0
+ make clean && make -s OPT_DEP_DEFAULT=1 HAVE_INOTIFY=0 \
+ CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/include/freetype2" \
+ LDLIBS="-L/opt/homebrew/lib"
# force uninstallation with --ignore-dependencies
brew uninstall --ignore-dependencies libxft libexif
- make clean && make -s OPT_DEP_DEFAULT=0
+ make clean && make -s OPT_DEP_DEFAULT=0 \
+ CPPFLAGS="-I/opt/homebrew/include" \
+ LDLIBS="-L/opt/homebrew/lib"