60
60
fail-fast : false
61
61
matrix :
62
62
# Use Ubuntu 20.04 / Ubuntu 24.04 / macOS 13 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
63
- os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-13', 'macos-14' ] # macOS 14 runner exclusively runs on M1 hardwares
63
+ os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-13', 'macos-14', 'pi' ] # macOS 14 runner exclusively runs on M1 hardwares
64
64
# see https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available
65
65
python_version : [ '3.10' ]
66
66
runs-on : ${{ matrix.os }}
@@ -127,7 +127,7 @@ jobs:
127
127
strategy :
128
128
fail-fast : false
129
129
matrix :
130
- os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-12', 'macos-14', 'windows-2022' ]
130
+ os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-12', 'macos-14', 'windows-2022', 'pi' ]
131
131
python_version : [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
132
132
exclude :
133
133
# actions/setup-python: The version '3.8'/'3.9' with architecture 'arm64' was not found for macOS.
@@ -146,6 +146,9 @@ jobs:
146
146
- uses : actions/setup-python@v5
147
147
with :
148
148
python-version : ${{ matrix.python_version }}
149
+ - name : Remove old poetry cache
150
+ run : rm -rf ~/.cache/pypoetry
151
+ if : ${{ matrix.os == 'pi' }}
149
152
- name : Setup Poetry
150
153
uses : snok/install-poetry@v1
151
154
with :
@@ -162,9 +165,11 @@ jobs:
162
165
fi
163
166
echo "Installing python deps"
164
167
poetry self add "poetry-dynamic-versioning[plugin]"
165
- poetry env use python3 # use the correct Python version we've set up
168
+ poetry env use python$PYTHON_VERSION || poetry env use python3 # use the correct Python version we've set up
166
169
poetry install --no-root --only=dev
167
170
echo "Installed Dependencies"
171
+ env :
172
+ PYTHON_VERSION : ${{ matrix.python_version }}
168
173
- name : Build Docs # only build docs once
169
174
if : ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.11' }}
170
175
run : |
0 commit comments