Skip to content

Commit

Permalink
fix(gh-macos-build): Check if pkg-config is installed before trying t…
Browse files Browse the repository at this point in the history
…o install it (fixes y-scope#610). (y-scope#611)
  • Loading branch information
kirkrodrigues authored and Jack Luo committed Dec 4, 2024
1 parent 84f7366 commit 44604c1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,12 @@ brew install \
mongo-cxx-driver \
msgpack-cxx \
spdlog \
pkg-config \
zstd

# Install pkg-config if it isn't already installed
# NOTE: We might expect that pkg-config is installed through brew, so trying to install it again
# would be harmless; however, in certain environments, like the macOS GitHub hosted runner,
# pkg-config is installed by other means, meaning a brew install would cause conflicts.
if ! command -v pkg-config ; then
brew install pkg-config
fi

0 comments on commit 44604c1

Please sign in to comment.