From d20a66891c2c98ece8d9f940d8a98f12c2194180 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 22 Sep 2025 00:14:14 -0400 Subject: [PATCH] Use `sw_vers` instead of `uname` on macOS Yields the macOS version instead of the kernel's version. --- .github/actions/build-dependencies/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build-dependencies/action.yml b/.github/actions/build-dependencies/action.yml index 7c2d12ae..c8e5d4c0 100644 --- a/.github/actions/build-dependencies/action.yml +++ b/.github/actions/build-dependencies/action.yml @@ -44,7 +44,7 @@ runs: elif [ "$RUNNER_OS" == "macOS" ]; then brew install protobuf llvm HOMEBREW_ROOT_PATH=/opt/homebrew - if [ $(uname -r | awk -F "." '{ print $1 }') -eq "13" ]; then HOMEBREW_ROOT_PATH=/usr/local; fi + if [ $(sw_vers -productVersion | awk -F "." '{ print $1 }') = "13" ]; then HOMEBREW_ROOT_PATH=/usr/local; fi 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" fi