Skip to content

Commit af6a79d

Browse files
committed
Build Pyodide wheel
1 parent 740357d commit af6a79d

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,30 @@ jobs:
321321
retention-days: 7
322322
compression-level: 0
323323

324+
pyodide:
325+
runs-on: ubuntu-24.04
326+
steps:
327+
- uses: actions/checkout@v4
328+
with:
329+
fetch-depth: ${{ env.git-depth }}
330+
- name: Checkout submodules
331+
run: git submodule update --init --recursive --depth 1
332+
- uses: libsdl-org/setup-sdl@6574e20ac65ce362cd12f9c26b3a5e4d3cd31dee
333+
with:
334+
install-linux-dependencies: true
335+
build-type: "Debug"
336+
version: ${{ env.sdl-version }}
337+
- uses: pypa/cibuildwheel@v3.0.0
338+
env:
339+
CIBW_PLATFORM: pyodide
340+
- name: Archive wheel
341+
uses: actions/upload-artifact@v4
342+
with:
343+
name: wheels-pyodide
344+
path: wheelhouse/*.whl
345+
retention-days: 30
346+
compression-level: 0
347+
324348
publish:
325349
needs: [sdist, build, build-macos, linux-wheels]
326350
runs-on: ubuntu-latest

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@
350350
"pycall",
351351
"pycparser",
352352
"pyinstaller",
353+
"pyodide",
353354
"pypa",
354355
"PYPI",
355356
"pypiwin",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [
66
"setuptools_scm[toml]>=6.2",
77
"packaging>=24.2",
88
"wheel>=0.37.1",
9-
"cffi>=1.15",
9+
"cffi @ https://github.com/python-cffi/cffi/archive/refs/heads/main.zip", #"cffi>=1.15",
1010
"pycparser>=2.14",
1111
"pcpp==1.30",
1212
"requests>=2.28.1",

0 commit comments

Comments
 (0)