You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by su...@apache.org on 2024/02/20 17:01:18 UTC

(arrow-datafusion-comet) branch main updated: build: Fix potential libcrypto lib loading issue for X86 mac runners (#55)

This is an automated email from the ASF dual-hosted git repository.

sunchao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion-comet.git


The following commit(s) were added to refs/heads/main by this push:
     new f7b88e9  build: Fix potential libcrypto lib loading issue for X86 mac runners (#55)
f7b88e9 is described below

commit f7b88e9db5ac71ba6151888dd14881cdf0750eb0
Author: advancedxy <xi...@apache.org>
AuthorDate: Wed Feb 21 01:01:13 2024 +0800

    build: Fix potential libcrypto lib loading issue for X86 mac runners (#55)
---
 .github/actions/setup-macos-builder/action.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/actions/setup-macos-builder/action.yaml b/.github/actions/setup-macos-builder/action.yaml
index d69e9fb..1f680ed 100644
--- a/.github/actions/setup-macos-builder/action.yaml
+++ b/.github/actions/setup-macos-builder/action.yaml
@@ -49,6 +49,12 @@ runs:
         unzip $PROTO_ZIP
         echo "$HOME/d/protoc/bin" >> $GITHUB_PATH
         export PATH=$PATH:$HOME/d/protoc/bin
+        # install openssl and setup DYLD_LIBRARY_PATH to work with libcrypto.dylib loading issues with x86_64 mac runners
+        # see PR https://github.com/apache/arrow-datafusion-comet/pull/55 for more details
+        brew install openssl
+        OPENSSL_LIB_PATH=$(dirname `brew list openssl | grep 'lib/libcrypto.dylib'`)
+        echo "openssl lib path is: ${OPENSSL_LIB_PATH}"
+        export DYLD_LIBRARY_PATH=$OPENSSL_LIB_PATH:$DYLD_LIBRARY_PATH
 
     - name: Install JDK ${{inputs.jdk-version}}
       uses: actions/setup-java@v4