Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit b187022

Browse files
committed
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.
1 parent fb1ec9f commit b187022

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ jobs:
3737
.\install.ps1 -RunAsAdmin
3838
scoop install [email protected] --global
3939
echo "C:\ProgramData\scoop\shims;C:\Users\runneradmin\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
40+
# TODO: Remove this step when the compatibility issue between mozjs and
41+
# Homebrew's Python 3.10 formula (servo/rust-mozjs#559) is truly fixed
42+
- name: Select Python 3.9
43+
if: startsWith(matrix.os, 'macOS')
44+
run: |
45+
brew install [email protected]
46+
cd $(dirname $(which python3.9))
47+
rm -f python3 pip3
48+
ln -s python3.9 python3
49+
ln -s pip3.9 pip3
4050
- uses: actions-rs/toolchain@v1
4151
with:
4252
profile: minimal

0 commit comments

Comments
 (0)