1717 - ' '
1818 - ' ubuntu-22.04'
1919 - ' macos-15-intel'
20- - ' macos-14 '
20+ - ' macos-15 '
2121 - ' windows-2022'
2222 debug_enabled_python :
2323 type : choice
3232 - ' 3.12'
3333 - ' 3.13'
3434 - ' 3.14'
35+ - ' 3.15'
3536 build_type :
3637 type : choice
3738 description : ' Choose the build type to use'
4546 - ' Release'
4647 - ' None'
4748 pull_request :
49+ schedule :
50+ # GitHub Actions delete the CI caches that haven't been accessed in 7 days.
51+ # We need to keep the cached SpiderMonkey build because it takes a long time to build and is required for the PythonMonkey build.
52+ - cron : ' 0 4 */6 * *' # every 6 days
4853
4954env :
5055 # don't upgrade outdated brew packages because the process is too slow
6772 strategy :
6873 fail-fast : false
6974 matrix :
70- # Use Ubuntu 22.04 / macOS 15 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
71- os : [ 'ubuntu-22.04', 'macos-15-intel', 'macos-14', 'ubuntu-22.04-arm' ] # macOS 14 runner exclusively runs on M1 hardwares
72- # see https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available
75+ # Use Ubuntu 22.04 / macOS 15 x86_64 / macOS 15 arm64 + Python 3.10 to build SpiderMonkey
76+ os : [ 'ubuntu-22.04', 'macos-15-intel', 'macos-15', 'ubuntu-22.04-arm' ]
7377 python_version : [ '3.10' ]
7478 runs-on : ${{ matrix.os }}
7579 container : ${{ (startsWith(matrix.os, 'ubuntu') && 'ubuntu:20.04') || null }} # Use the Ubuntu 20.04 container inside Ubuntu 22.04 runner to build
@@ -100,10 +104,10 @@ jobs:
100104 apt-get install -y lsb-release wget software-properties-common gnupg
101105 wget https://apt.llvm.org/llvm.sh
102106 chmod +x llvm.sh
103- ./llvm.sh 18 # install LLVM version 18
104- update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-18 18
105- update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 18
106- update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 18
107+ ./llvm.sh 19 # SpiderMonkey at the current mozcentral. version pin requires clang/llvm >= 19 (confirmed via its own configure error)
108+ update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-19 19
109+ update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 19
110+ update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 19
107111 clang --version
108112 clang++ --version
109113 - name : Setup Python
@@ -125,7 +129,7 @@ jobs:
125129 with :
126130 python-version : ${{ matrix.python_version }}
127131 - name : Setup XCode
128- if : ${{ matrix.os == 'macos-15-intel' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
132+ if : ${{ ( matrix.os == 'macos-15-intel' || matrix.os == 'macos-15') && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
129133 # Xcode 16.x removed the old linker behaviour (-ld64 or -ld_classic) that SpiderMonkey relies on, so we need to switch to an older version
130134 run : sudo xcode-select -switch /Applications/Xcode_16.0.app
131135 - name : Build spidermonkey
@@ -181,8 +185,8 @@ jobs:
181185 strategy :
182186 fail-fast : false
183187 matrix :
184- os : [ 'ubuntu-22.04', 'macos-15-intel', 'macos-14 ', 'windows-2022', 'ubuntu-22.04-arm' ]
185- python_version : [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ]
188+ os : [ 'ubuntu-22.04', 'macos-15-intel', 'macos-15 ', 'windows-2022', 'ubuntu-22.04-arm' ]
189+ python_version : [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15' ]
186190 runs-on : ${{ matrix.os }}
187191 container : ${{ (startsWith(matrix.os, 'ubuntu') && 'ubuntu:20.04') || null }}
188192 steps :
@@ -231,16 +235,33 @@ jobs:
231235 - name : Setup Poetry
232236 uses : snok/install-poetry@v1.4.1
233237 with :
234- version : 1.5.1
238+ version : 1.8.5
235239 - name : Install Dependencies
236240 run : |
237241 echo "Installing Dependencies"
238242 if [[ "$OSTYPE" == "linux-gnu"* ]]; then # Linux
239243 sudo apt-get update -y
240244 sudo apt-get install -y cmake llvm
245+ # SpiderMonkey's headers now require clang/llvm >= 19 and
246+ # libstdc++ >= 10 to compile against (same requirement as the
247+ # build-spidermonkey job) -- this job's default toolchain
248+ # (ubuntu:20.04's stock gcc-9) doesn't meet it.
249+ sudo apt-get install -y lsb-release wget software-properties-common gnupg
250+ wget https://apt.llvm.org/llvm.sh
251+ chmod +x llvm.sh
252+ sudo ./llvm.sh 19
253+ sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-19 19
254+ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 19
255+ sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 19
256+ sudo apt-get install -y libstdc++-10-dev
257+ echo "CC=clang" >> $GITHUB_ENV
258+ echo "CXX=clang++" >> $GITHUB_ENV
241259 elif [[ "$OSTYPE" == "darwin"* ]]; then # macOS
242- brew update || true # allow failure
243- brew install cmake pkg-config wget unzip coreutils # `coreutils` installs the `realpath` command
260+ # Shared with setup.sh: installs llvm@19/lld@19 (Xcode's clang is too old for
261+ # SpiderMonkey) and, on Intel, pulls archived bottles from GHCR.
262+ source ./cmake/macos-brew-deps.sh
263+ install_macos_brew_deps
264+ echo "PATH=$PATH" >> $GITHUB_ENV
244265 fi
245266 echo "Installing python deps"
246267 poetry self add "poetry-dynamic-versioning[plugin]"
@@ -255,7 +276,7 @@ jobs:
255276 run : |
256277 sudo apt-get install -y graphviz
257278 # the newest version in Ubuntu 20.04 repository is 1.8.17, but we need Doxygen 1.9 series
258- wget -c -q https://www. doxygen.nl/files /doxygen-1.9.7.linux.bin.tar.gz
279+ wget -c -q https://github.com/ doxygen/doxygen/releases/download/Release_1_9_7 /doxygen-1.9.7.linux.bin.tar.gz
259280 tar xf doxygen-1.9.7.linux.bin.tar.gz
260281 cd doxygen-1.9.7 && sudo make install && cd -
261282 rm -rf doxygen-1.9.7 doxygen-1.9.7.linux.bin.tar.gz
@@ -289,7 +310,7 @@ jobs:
289310 BUILD_TYPE=${WORKFLOW_BUILD_TYPE:-"Debug"} poetry build --format=wheel
290311 ls -lah ./dist/
291312 - name : Make the wheels we build also support lower versions of macOS
292- if : ${{ matrix.os == 'macos-15-intel' || matrix.os == 'macos-14 ' }}
313+ if : ${{ matrix.os == 'macos-15-intel' || matrix.os == 'macos-15 ' }}
293314 # Change the platform tag part of the wheel filename to `macosx_11_0_xxx` (means to support macOS 11.0 and above)
294315 # See https://packaging.python.org/en/latest/specifications/binary-distribution-format/#file-format
295316 # A wheel package file will only be selected by pip to install if the platform tag satisfies, regardless of whether the binary compatibility actually is.
@@ -299,6 +320,16 @@ jobs:
299320 for file in *.whl; do
300321 mv "$file" "$(echo "$file" | sed -E 's/macosx_[0-9]+_[0-9]+/macosx_11_0/')";
301322 done
323+ - name : Tag the Linux wheels as manylinux
324+ if : ${{ startsWith(matrix.os, 'ubuntu') }}
325+ # PyPI rejects wheels with the plain `linux_xxx` platform tag.
326+ # The wheels are built inside the Ubuntu 20.04 container (glibc 2.31), so tag them as `manylinux_2_31_xxx`.
327+ run : |
328+ cd ./dist/
329+ for file in *-linux_*.whl; do
330+ [ -e "$file" ] || continue
331+ mv "$file" "$(echo "$file" | sed -E 's/-linux_/-manylinux_2_31_/')";
332+ done
302333 - name : Upload wheel as CI artifacts
303334 uses : actions/upload-artifact@v4
304335 with :
@@ -330,7 +361,7 @@ jobs:
330361 - name : Setup Poetry
331362 uses : snok/install-poetry@v1
332363 with :
333- version : 1.5.1
364+ version : 1.8.5
334365 - name : Build source distribution (sdist) file
335366 run : |
336367 poetry self add "poetry-dynamic-versioning[plugin]"
0 commit comments