Skip to content

Commit

Permalink
Add Homebrew formulae to PKG_CONFIG_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal committed Jan 15, 2022
1 parent 76f12be commit 70ce353
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ jobs:
echo "LIBRARY_PATH=$(brew --prefix)/lib${LIBRARY_PATH:+:${LIBRARY_PATH}}" >> $GITHUB_ENV
else
echo "Unlinking libraries from Homebrew prefix so that pkg-config must be used."
brew unlink \
libpng \
libxt libice libsm libx11
FORMULAE_TO_UNLINK="libpng libxt libice libsm libx11"
brew unlink $FORMULAE_TO_UNLINK
PKG_CONFIG_PATH_FOR_FORMULAE=$( brew ls $FORMULAE_TO_UNLINK \
| grep /pkgconfig/ | xargs -n1 dirname \
| sort -u | tr '\n' ':' | sed 's/:$//' )
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH_FOR_FORMULAE${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}" >> $GITHUB_ENV
fi
- name: Bootstrap
run: |
Expand Down

0 comments on commit 70ce353

Please # to comment.