diff --git a/.github/workflows/build_binaries.yml b/.github/workflows/build_binaries.yml index 0af8a75..93e8e13 100644 --- a/.github/workflows/build_binaries.yml +++ b/.github/workflows/build_binaries.yml @@ -179,9 +179,21 @@ jobs: - name: Install dependencies (macOS) if: startsWith(runner.os,'macOS') + shell: bash run: | # openssl, cmake and autoconf already installed brew install zip coreutils automake protobuf + # Force static openssl libs + echo "OPENSSL_STATIC=1" >> $GITHUB_ENV + if [ -f /opt/homebrew/opt/openssl/README.md ]; then + ls -la /opt/homebrew/opt/openssl/ + echo "OPENSSL_LIB_DIR=/opt/homebrew/opt/openssl/lib" >> $GITHUB_ENV + echo "OPENSSL_INCLUDE_DIR=/opt/homebrew/opt/openssl/include" >> $GITHUB_ENV + else + ls -la /usr/local/opt/openssl/ + echo "OPENSSL_LIB_DIR=/usr/local/opt/openssl/lib" >> $GITHUB_ENV + echo "OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include" >> $GITHUB_ENV + fi - name: Install macOS-14 missing dependencies - hack if: ${{ startsWith(runner.os,'macOS') && startsWith(runner.arch,'ARM64') }}