Skip to content

Commit

Permalink
Use setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
pacowong authored Nov 25, 2023
1 parent 8bb42cb commit c1b4213
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/generate-xcframework-maccatalyst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,14 @@ jobs:
build_macabi_xcf:
runs-on: macos-latest
steps:
- name: install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: check Xcode version and Python 3
run: |
/usr/bin/xcodebuild -version
brew uninstall --ignore-dependencies python
#brew uninstall --ignore-dependencies [email protected]
#brew uninstall --ignore-dependencies [email protected]
brew install [email protected]
#brew install python3
ls /usr/local/bin/python*
rm /usr/local/bin/python3
#echo "alias python=/usr/local/bin/python3.10" >> ~/.zshrc
#echo "alias python3=/usr/local/bin/python3.10" >> ~/.zshrc
#source ~/.zshrc
alias python3=/usr/local/bin/python3.10
alias python=/usr/local/bin/python3.10
#brew unlink python
#brew switch python 3.10
brew link --overwrite [email protected]
python3 --version
python --version
which python3
Expand Down

0 comments on commit c1b4213

Please sign in to comment.