15
15
required : false
16
16
options :
17
17
- ' '
18
- - ' ubuntu-20 .04'
18
+ - ' ubuntu-22 .04'
19
19
- ' macos-13'
20
20
- ' macos-14'
21
21
- ' windows-2022'
64
64
strategy :
65
65
fail-fast : false
66
66
matrix :
67
- # Use Ubuntu 20 .04 / macOS 13 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
68
- os : [ 'ubuntu-20 .04', 'macos-13', 'macos-14', 'ubuntu-22.04-arm' ] # macOS 14 runner exclusively runs on M1 hardwares
67
+ # Use Ubuntu 22 .04 / macOS 13 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
68
+ os : [ 'ubuntu-22 .04', 'macos-13', 'macos-14', 'ubuntu-22.04-arm' ] # macOS 14 runner exclusively runs on M1 hardwares
69
69
# see https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available
70
70
python_version : [ '3.10' ]
71
71
runs-on : ${{ matrix.os }}
@@ -132,7 +132,7 @@ jobs:
132
132
strategy :
133
133
fail-fast : false
134
134
matrix :
135
- os : [ 'ubuntu-20 .04', 'macos-13', 'macos-14', 'windows-2022', 'ubuntu-22.04-arm' ]
135
+ os : [ 'ubuntu-22 .04', 'macos-13', 'macos-14', 'windows-2022', 'ubuntu-22.04-arm' ]
136
136
python_version : [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
137
137
runs-on : ${{ matrix.os }}
138
138
steps :
@@ -166,7 +166,7 @@ jobs:
166
166
env :
167
167
PYTHON_VERSION : ${{ matrix.python_version }}
168
168
- name : Build Docs # only build docs once
169
- if : ${{ matrix.os == 'ubuntu-20 .04' && matrix.python_version == '3.11' }}
169
+ if : ${{ matrix.os == 'ubuntu-22 .04' && matrix.python_version == '3.11' }}
170
170
run : |
171
171
sudo apt-get install -y graphviz
172
172
# the newest version in Ubuntu 20.04 repository is 1.8.17, but we need Doxygen 1.9 series
@@ -176,7 +176,7 @@ jobs:
176
176
rm -rf doxygen-1.9.7 doxygen-1.9.7.linux.bin.tar.gz
177
177
BUILD_DOCS=1 BUILD_TYPE=None poetry install
178
178
- name : Upload Doxygen-generated docs as CI artifacts
179
- if : ${{ matrix.os == 'ubuntu-20 .04' && matrix.python_version == '3.11' }}
179
+ if : ${{ matrix.os == 'ubuntu-22 .04' && matrix.python_version == '3.11' }}
180
180
uses : actions/upload-artifact@v4
181
181
with :
182
182
name : docs-${{ github.run_id }}-${{ github.sha }}
@@ -261,7 +261,7 @@ jobs:
261
261
name : cores-${{ matrix.os }}-${{ matrix.python_version }}
262
262
path : /cores
263
263
sdist :
264
- runs-on : ubuntu-20 .04
264
+ runs-on : ubuntu-22 .04
265
265
steps :
266
266
- uses : actions/checkout@v4
267
267
with :
@@ -283,22 +283,9 @@ jobs:
283
283
with :
284
284
name : wheel-${{ github.run_id }}-${{ github.sha }}-sdist
285
285
path : ./dist/
286
- check-install-from-sdist :
287
- needs : sdist
288
- runs-on : ubuntu-24.04
289
- steps :
290
- - uses : actions/setup-python@v5
291
- with :
292
- python-version : ' 3.10'
293
- - name : Download wheels built
294
- uses : actions/download-artifact@v4
295
- with :
296
- name : wheel-${{ github.run_id }}-${{ github.sha }}-sdist
297
- path : ./dist/
298
- - run : pip install ./dist/pythonmonkey-*.tar.gz
299
286
publish :
300
287
needs : [build-and-test, sdist]
301
- runs-on : ubuntu-20 .04
288
+ runs-on : ubuntu-22 .04
302
289
if : ${{ success() && github.event_name == 'push' && github.ref_type == 'tag' }}
303
290
steps :
304
291
# no need to checkout
@@ -322,7 +309,7 @@ jobs:
322
309
# Implement a very basic Python package repository (https://peps.python.org/pep-0503/)
323
310
# and deploy the static files to GitHub Pages
324
311
needs : [build-and-test, sdist]
325
- runs-on : ubuntu-20 .04
312
+ runs-on : ubuntu-22 .04
326
313
if : ${{ (success() || failure()) && (github.ref_name == 'main' || github.ref_type == 'tag') }} # publish nightly builds regardless of tests failure
327
314
permissions : # grant GITHUB_TOKEN the permissions required to make a Pages deployment
328
315
pages : write
@@ -382,7 +369,7 @@ jobs:
382
369
publish-archive :
383
370
# Publish to ⊇istributive's archive server (https://archive.distributed.computer/releases/pythonmonkey/)
384
371
needs : [build-and-test, sdist]
385
- runs-on : ubuntu-20 .04
372
+ runs-on : ubuntu-22 .04
386
373
if : ${{ (success() || failure()) && (github.ref_name == 'main' || github.ref_type == 'tag') }}
387
374
environment :
388
375
name : archive
0 commit comments