infra: fix macos build crash

This commit is contained in:
Jinny You 2023-11-15 12:23:13 +09:00 committed by Hermet Park
parent 92e6538b62
commit 0c9827a9ed

View file

@ -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