ci: python install error on mac

GITHUB:no

https://github.com/nmeum/android-tools/pull/150

The formula built, but is not symlinked into /usr/local ;##[error]The rew link step did not complete successfully; Could not symlink bin/2to3;Target /usr/local/bin/2to3;already exists. You may want to remove it:rm '/usr/local/bin/2to3'

Change-Id: Ica3abe89eb9a006e40fb519e0e0c90325a1b33e0
This commit is contained in:
Mack 2024-06-22 19:01:43 +08:00 committed by Lane.Wei
parent 61481700a4
commit 124bedf545
1 changed files with 8 additions and 1 deletions

View File

@ -74,6 +74,13 @@ jobs:
run: Compress-Archive -Path "${{ github.workspace }}\deps\build\BambuStudio_dep\*" -DestinationPath "${{ github.workspace }}\deps\build\BambuStudio_dep_win64_${{ env.date }}_vs2022.zip"
shell: pwsh
- name: Fix python install error on mac
if: inputs.os == 'macos-13'
working-directory: ${{ github.workspace }}
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: Build on Mac ${{ inputs.arch }}
if: inputs.os == 'macos-13'