Skip to content

Commit 36f17fb

Browse files
committed
Add later CPython versions for pyodide builds
Attempting to package a more modern wheel Specific SDL versions needed for different Emscripten versions
1 parent c587230 commit 36f17fb

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/python-package.yml‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,16 @@ jobs:
347347
needs: [ruff, mypy, sdist]
348348
runs-on: ubuntu-26.04
349349
timeout-minutes: 15
350+
strategy:
351+
fail-fast: false
352+
matrix:
353+
include: # https://pyodide.org/en/stable/development/abi.html
354+
- python: "cp313"
355+
sdl-version: "3.2.4"
356+
- python: "cp314"
357+
sdl-version: "3.2.16"
358+
- python: "cp315"
359+
sdl-version: "3.4.0"
350360
steps:
351361
- uses: actions/checkout@v7
352362
with:
@@ -358,15 +368,16 @@ jobs:
358368
with:
359369
install-linux-dependencies: true
360370
build-type: "Debug"
361-
version: "3.2.4" # Should be equal or less than the version used by Emscripten
371+
version: ${{ matrix.sdl-version }} # Should be equal or less than the version used by Emscripten
362372
- uses: pypa/cibuildwheel@v4.3.3
363373
env:
364-
CIBW_BUILD: cp313-pyodide_wasm32
374+
CIBW_BUILD: ${{ matrix.python }}-pyodide_wasm32
365375
CIBW_PLATFORM: pyodide
376+
SDL_VERSION: ${{ matrix.sdl-version }}
366377
- name: Archive wheel
367378
uses: actions/upload-artifact@v7
368379
with:
369-
name: wheels-pyodide
380+
name: wheels-pyodide-${{ matrix.python }}
370381
path: wheelhouse/*.whl
371382
retention-days: 30
372383
compression-level: 0

0 commit comments

Comments
 (0)