build(macos): fix error in macos-13 build (#3022)

Co-authored-by: Vithorio Polten <reach@vithor.io>
This commit is contained in:
ReenigneArcher 2024-08-16 18:41:31 -04:00 committed by GitHub
parent 727ea9037e
commit 7c4c905f04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -484,6 +484,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Fix python
if: matrix.os_name == 'macos' && matrix.os_version == '13'
run: |
rm '/usr/local/bin/2to3'
rm '/usr/local/bin/2to3-3.12'
rm '/usr/local/bin/idle3'
rm '/usr/local/bin/idle3.12'
rm '/usr/local/bin/pydoc3'
rm '/usr/local/bin/pydoc3.12'
rm '/usr/local/bin/python3'
rm '/usr/local/bin/python3-config'
rm '/usr/local/bin/python3.12'
rm '/usr/local/bin/python3.12-config'
brew install python
- name: Configure formula
run: |
# variables for formula