Skip to content

Commit eebcb67

Browse files
added ubuntu-24.04 to CI
1 parent 7a398bf commit eebcb67

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/test-and-publish.yaml

+8-7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
options:
1717
- ''
1818
- 'ubuntu-20.04'
19+
- 'ubuntu-24.04'
1920
- 'macos-12'
2021
- 'macos-14'
2122
- 'windows-2019'
@@ -60,7 +61,7 @@ jobs:
6061
fail-fast: false
6162
matrix:
6263
# Use Ubuntu 20.04 / macOS 13 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
63-
os: [ 'ubuntu-20.04', 'macos-13', 'macos-14' ] # macOS 14 runner exclusively runs on M1 hardwares
64+
os: [ 'ubuntu-20.04','ubuntu-24.04','macos-13', 'macos-14' ] # macOS 14 runner exclusively runs on M1 hardwares
6465
# see https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available
6566
python_version: [ '3.10' ]
6667
runs-on: ${{ matrix.os }}
@@ -123,7 +124,7 @@ jobs:
123124
fail-fast: false
124125
matrix:
125126
# The lowest supported version is Ubuntu 20.04 + Python 3.8 or macOS 12 + Python 3.9
126-
os: [ 'ubuntu-20.04', 'macos-12', 'macos-14', 'windows-2019' ]
127+
os: [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-12', 'macos-14', 'windows-2019' ]
127128
python_version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
128129
exclude:
129130
# actions/setup-python: The version '3.8'/'3.9' with architecture 'arm64' was not found for macOS.
@@ -162,7 +163,7 @@ jobs:
162163
poetry install --no-root --only=dev
163164
echo "Installed Dependencies"
164165
- name: Build Docs # only build docs once
165-
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.11' }}
166+
if: ${{ (matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-24.04') && matrix.python_version == '3.11' }}
166167
run: |
167168
sudo apt-get install -y graphviz
168169
# the newest version in Ubuntu 20.04 repository is 1.8.17, but we need Doxygen 1.9 series
@@ -172,7 +173,7 @@ jobs:
172173
rm -rf doxygen-1.9.7 doxygen-1.9.7.linux.bin.tar.gz
173174
BUILD_DOCS=1 BUILD_TYPE=None poetry install
174175
- name: Upload Doxygen-generated docs as CI artifacts
175-
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.11' }}
176+
if: ${{ (matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-24.04') && matrix.python_version == '3.11' }}
176177
uses: actions/upload-artifact@v3
177178
with:
178179
name: docs-${{ github.run_id }}-${{ github.sha }}
@@ -244,7 +245,7 @@ jobs:
244245
name: cores-${{ matrix.os }}-${{ matrix.python_version }}
245246
path: /cores
246247
sdist:
247-
runs-on: ubuntu-20.04
248+
runs-on: [ubuntu-20.04,ubuntu-24.04]
248249
steps:
249250
- uses: actions/checkout@v4
250251
with:
@@ -268,7 +269,7 @@ jobs:
268269
path: ./dist/
269270
publish:
270271
needs: [build-and-test, sdist]
271-
runs-on: ubuntu-20.04
272+
runs-on: [ubuntu-20.04,ubuntu-24.04]
272273
if: ${{ success() && github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
273274
steps:
274275
# no need to checkout
@@ -291,7 +292,7 @@ jobs:
291292
# Implement a very basic Python package repository (https://peps.python.org/pep-0503/)
292293
# and deploy the static files to GitHub Pages
293294
needs: [build-and-test, sdist]
294-
runs-on: ubuntu-20.04
295+
runs-on: [ubuntu-20.04,ubuntu-24.04]
295296
if: ${{ (success() || failure()) && github.ref_name == 'main' }} # publish nightly builds regardless of tests failure
296297
permissions: # grant GITHUB_TOKEN the permissions required to make a Pages deployment
297298
pages: write

0 commit comments

Comments
 (0)