From 77b853bb7cc279be5a4f61184f297fea1b24d883 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 24 Apr 2024 03:25:30 +0000 Subject: [PATCH] Fix arm64 macos build issue --- .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