chore(ci): relink python3 to python3.9 on Homebrew

Implements a work-around for the compatibility issue between mozjs and
Homebrew's Python 3.10 formula.
This commit is contained in:
yvt 2022-09-22 00:56:18 +09:00 committed by Josh Matthews
parent 5bebdeadbe
commit f47a53f3b1
2 changed files with 18 additions and 0 deletions

View file

@ -104,6 +104,15 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 2
# TODO: Remove this step when the compatibility issue between mozjs and
# Homebrew's Python 3.10 formula (servo/rust-mozjs#559) is fixed
- name: Select Python 3.9
run: |
brew install python@3.9
cd $(dirname $(which python3.9))
rm -f python3 pip3
ln -s python3.9 python3
ln -s pip3.9 pip3
- name: Bootstrap
run: |
python3 -m pip install --upgrade pip virtualenv

View file

@ -39,6 +39,15 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 2
# TODO: Remove this step when the compatibility issue between mozjs and
# Homebrew's Python 3.10 formula (servo/rust-mozjs#559) is fixed
- name: Select Python 3.9
run: |
brew install python@3.9
cd $(dirname $(which python3.9))
rm -f python3 pip3
ln -s python3.9 python3
ln -s pip3.9 pip3
- name: Bootstrap
run: |
python3 -m pip install --upgrade pip virtualenv