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 #610). (#611)
  • Loading branch information
kirkrodrigues authored Nov 22, 2024
1 parent 7d85ad3 commit a864e42
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 a864e42

Please sign in to comment.