From 0c9827a9ed87108977255ee03616b2b08ad56541 Mon Sep 17 00:00:00 2001 From: Jinny You Date: Wed, 15 Nov 2023 12:23:13 +0900 Subject: [PATCH] infra: fix macos build crash --- .github/workflows/build_macos.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build_macos.yml b/.github/workflows/build_macos.yml index 835883f8..c9a3d041 100644 --- a/.github/workflows/build_macos.yml +++ b/.github/workflows/build_macos.yml @@ -16,6 +16,12 @@ jobs: with: submodules: true + - name: Unbreak Python in Github Actions + run: | + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + sudo rm -rf /Library/Frameworks/Python.framework/ + brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3 + - name: Install Packages run: | export HOMEBREW_NO_INSTALL_FROM_API=1 @@ -35,6 +41,12 @@ jobs: with: submodules: true + - name: Unbreak Python in Github Actions + run: | + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + sudo rm -rf /Library/Frameworks/Python.framework/ + brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3 + - name: Install Packages run: | brew update @@ -52,6 +64,12 @@ jobs: with: submodules: true + - name: Unbreak Python in Github Actions + run: | + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + sudo rm -rf /Library/Frameworks/Python.framework/ + brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3 + - name: Install Packages run: | brew update