From c904167920a01c077b3127fc2426a2149ec3d8a9 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 22 Sep 2025 00:41:16 -0400 Subject: [PATCH] Replace hard-coded path with the intended env variable to fix macOS 13 --- .github/actions/build-dependencies/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/build-dependencies/action.yml b/.github/actions/build-dependencies/action.yml index c8e5d4c0..bd7ca5c7 100644 --- a/.github/actions/build-dependencies/action.yml +++ b/.github/actions/build-dependencies/action.yml @@ -43,10 +43,10 @@ runs: choco install protoc elif [ "$RUNNER_OS" == "macOS" ]; then brew install protobuf llvm - HOMEBREW_ROOT_PATH=/opt/homebrew - if [ $(sw_vers -productVersion | awk -F "." '{ print $1 }') = "13" ]; then HOMEBREW_ROOT_PATH=/usr/local; fi + HOMEBREW_ROOT_PATH=/opt/homebrew # macOS 14+ + if [ $(sw_vers -productVersion | awk -F "." '{ print $1 }') = "13" ]; then HOMEBREW_ROOT_PATH=/usr/local; fi # macOS 13 ls $HOMEBREW_ROOT_PATH/opt/llvm/lib | grep "libclang.dylib" # Make sure this installed `libclang` - echo "DYLD_LIBRARY_PATH=/opt/homebrew/opt/llvm/lib:$DYLD_LIBRARY_PATH" >> "$GITHUB_ENV" + echo "DYLD_LIBRARY_PATH=$HOMEBREW_ROOT_PATH/opt/llvm/lib:$DYLD_LIBRARY_PATH" >> "$GITHUB_ENV" fi - name: Install solc