Skip to content

Commit ba13b11

Browse files
a-mauricefirebase-workflow-trigger[bot]firebase-workflow-trigger-bot
authored
Remove python3.11 when doing the mac build (#520)
* Update build_macos.yml * Update build_macos.yml * Update build_macos.yml * Update build_macos.yml * Update Unity SDK dependencies - Thu Nov 03 2022 (#521) * Update Unity SDK dependencies - Thu Nov 03 2022 > Created by [Firebase Unity SDK build workflow](https://github.com/firebase/firebase-unity-sdk/actions/runs/3389712606). * Update Guids ID Co-authored-by: firebase-workflow-trigger-bot <[email protected]> Co-authored-by: firebase-workflow-trigger[bot] <80733318+firebase-workflow-trigger[bot]@users.noreply.github.com> Co-authored-by: firebase-workflow-trigger-bot <[email protected]>
1 parent 110ce21 commit ba13b11

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build_macos.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ jobs:
6161
with:
6262
ruby-version: 3.0.2
6363

64+
# Remove other python installs before installing the version we want
65+
- name: Remove other pythons
66+
shell: bash
67+
run: |
68+
ls -l /usr/local/bin | grep /Library/Frameworks/Python.framework/Versions/3 | awk '{print "sudo rm \47/usr/local/bin/" $9 "\47"}'
69+
ls -d /Library/Frameworks/Python.framework/Versions/3.* 2> /dev/null | awk '{print "sudo rm -rf \47" $0 "\47"}'
70+
ls -d /Applications/Python\ 3.* 2> /dev/null | awk '{print "sudo rm -rf \47" $0 "\47"}'
71+
6472
- name: Setup python
6573
uses: actions/setup-python@v4
6674
with:
@@ -106,6 +114,12 @@ jobs:
106114
timeout-minutes: 90
107115
shell: bash
108116
run: |
117+
if [ -f /usr/local/bin/python3.11 ]; then
118+
echo "Removing python3.11"
119+
sudo rm -f /usr/local/bin/python3.11
120+
else
121+
echo "Did not find python3.11"
122+
fi
109123
# TODO add handling cmake_extras
110124
python scripts/build_scripts/build_zips.py --gha --platform=macos --unity_root=$UNITY_ROOT_DIR --use_boringssl --architecture=x86_64 --architecture=arm64 --apis=${{ inputs.apis }}
111125

0 commit comments

Comments
 (0)