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.
This commit is contained in:
parent
2a62683e60
commit
420a0a2455
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -47,7 +47,11 @@ jobs:
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
# libinotify-kqueue isn't available on homebrew
|
# 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
|
# force uninstallation with --ignore-dependencies
|
||||||
brew uninstall --ignore-dependencies libxft libexif
|
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"
|
||||||
|
|
Loading…
Reference in a new issue