diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index a42c390baf..0413f679d0 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -174,7 +174,14 @@ jobs: - name: Use Xcode instead of Command Line Tools run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer - name: Install Required Packages - run: brew install automake coreutils pkg-config python-setuptools + run: | + if ! command -v pkg-config &> /dev/null; then + echo "pkg-config not found, installing..." + brew install pkg-config + else + echo "pkg-config is already installed" + fi + brew install automake coreutils python-setuptools # Workaround for macOS: https://github.com/actions/runner/issues/2958 - name: Install setuptools run: sudo -H pip install setuptools diff --git a/doc/build-macos.md b/doc/build-macos.md index 154c4fca32..6d22eb4aee 100644 --- a/doc/build-macos.md +++ b/doc/build-macos.md @@ -20,7 +20,7 @@ The built-in one is located in `/Applications/Utilities/Terminal.app`. ## Dependencies Install the required dependencies using Homebrew: ```bash -brew install automake berkeley-db4 libtool boost miniupnpc openssl pkg-config protobuf python qt libevent qrencode python-setuptools m4 +brew install automake berkeley-db4 libtool boost miniupnpc openssl protobuf python qt libevent qrencode python-setuptools m4 ``` In case you want to build the disk image with `make deploy` (.dmg / optional), you need RSVG: diff --git a/doc/build-osx.md b/doc/build-osx.md index 32d7dbd69e..b6e583ff21 100644 --- a/doc/build-osx.md +++ b/doc/build-osx.md @@ -16,7 +16,7 @@ Then install [Homebrew](https://brew.sh). Dependencies ---------------------- - brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent + brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl protobuf qt libevent If you want to build the disk image with `make deploy` (.dmg / optional), you need RSVG