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 7be5a18  fix: Another attempt to fix libcrypto.dylib loading issue 
(#112)
7be5a18 is described below

commit 7be5a1806af6bf213c8cb7739c0263f1fb6ab8fa
Author: advancedxy <xian...@apache.org>
AuthorDate: Tue Feb 27 01:04:52 2024 +0800

    fix: Another attempt to fix libcrypto.dylib loading issue (#112)
---
 .github/actions/setup-macos-builder/action.yaml | 9 +++++----
 .github/workflows/pr_build.yml                  | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/actions/setup-macos-builder/action.yaml 
b/.github/actions/setup-macos-builder/action.yaml
index 63010ea..cc1b631 100644
--- a/.github/actions/setup-macos-builder/action.yaml
+++ b/.github/actions/setup-macos-builder/action.yaml
@@ -49,12 +49,13 @@ 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
+        # install openssl and setup DYLD_LIBRARY_PATH
         brew install openssl
-        OPENSSL_LIB_PATH=$(dirname `brew list openssl | grep 
'lib/libcrypto.dylib'`)
+        OPENSSL_LIB_PATH=`brew --prefix openssl`/lib
         echo "openssl lib path is: ${OPENSSL_LIB_PATH}"
-        export DYLD_LIBRARY_PATH=$OPENSSL_LIB_PATH:$DYLD_LIBRARY_PATH
+        echo "DYLD_LIBRARY_PATH=$OPENSSL_LIB_PATH:$DYLD_LIBRARY_PATH" >> 
$GITHUB_ENV
+        # output the current status of SIP for later debugging
+        csrutil status || true
 
     - name: Install JDK ${{inputs.jdk-version}}
       uses: actions/setup-java@v4
diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml
index 669eddd..fe83032 100644
--- a/.github/workflows/pr_build.yml
+++ b/.github/workflows/pr_build.yml
@@ -70,7 +70,7 @@ jobs:
   macos-test:
     strategy:
       matrix:
-        os: [macos-latest]
+        os: [macos-13]
         java_version: [8, 11, 17]
         test-target: [rust, java]
         is_push_event:

Reply via email to