From 4d16280c73e97b9fe6ab0de3ddcc355875121907 Mon Sep 17 00:00:00 2001 From: Xianjin Date: Tue, 20 Feb 2024 14:23:11 +0800 Subject: [PATCH] build: Fix potential libcrypto lib loading issue for mac runners --- .github/actions/setup-macos-builder/action.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/setup-macos-builder/action.yaml b/.github/actions/setup-macos-builder/action.yaml index d69e9fbb5..98765a463 100644 --- a/.github/actions/setup-macos-builder/action.yaml +++ b/.github/actions/setup-macos-builder/action.yaml @@ -49,6 +49,10 @@ runs: unzip $PROTO_ZIP echo "$HOME/d/protoc/bin" >> $GITHUB_PATH export PATH=$PATH:$HOME/d/protoc/bin + # install openssl to work with potential issues with libcrypto.dylib loading + # see https://stackoverflow.com/questions/58272830/python-crashing-on-macos-10-15-beta-19a582a-with-usr-lib-libcrypto-dylib for more details + brew install openssl + export DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH - name: Install JDK ${{inputs.jdk-version}} uses: actions/setup-java@v4