From 071cc9d2df86ee605c5c717935179079cafe13c9 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Tue, 23 Apr 2024 20:38:11 -0700 Subject: [PATCH] Fix arm64 macos build issue (#1987) --- .github/workflows/build.bazel.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.bazel.sh b/.github/workflows/build.bazel.sh index 789adea1c..78df5a807 100755 --- a/.github/workflows/build.bazel.sh +++ b/.github/workflows/build.bazel.sh @@ -37,7 +37,11 @@ bazel version $PYTHON -m pip --version +if [[ $(uname) == "Darwin" && $(uname -m) == "arm64" ]]; then +$PYTHON -m pip install --upgrade --break-system-packages pip +else $PYTHON -m pip install --upgrade pip +fi $PYTHON -m pip install --upgrade setuptools $PYTHON -m pip --version