Skip to content

Commit

Permalink
ci: add pyodide build
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed May 31, 2024
1 parent a2fe2ef commit 65ac58e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
workflow_dispatch:
pull_request:
paths:
- .github/workflows/release.yml

env:
# Latest Jupyter requires this to acknowledge deprecation
Expand Down Expand Up @@ -66,6 +69,29 @@ jobs:
name: wheel-${{ matrix.py }}-${{ matrix.os }}-${{ matrix.arch }}
path: ./wheelhouse/*.whl

pyodide:
needs: release_check
name: Pyodide
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- uses: pypa/cibuildwheel@main
env:
CIBW_PLATFORM: pyodide

- uses: actions/upload-artifact@v4
with:
name: pyodide
path: ./wheelhouse/*.whl


sdist:
needs: release_check
name: source package
Expand All @@ -83,7 +109,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: sdist
name: wheel-sdist
path: dist/*.tar.gz

upload:
Expand All @@ -97,7 +123,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: "*"
pattern: "wheel-*"
merge-multiple: true
path: dist

Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,10 @@ PIP_ONLY_BINARY = ":all:"
select = "cp3?-*"
manylinux-x86_64-image = "manylinux2010"
manylinux-i686-image = "manylinux2010"


[[tool.cibuildwheel.overrides]]
select = "*pyodide*"
inherit.environment = "append"
environment.CFLAGS = "-fexceptions"
environment.LDFLAGS = "-fexceptions"

0 comments on commit 65ac58e

Please sign in to comment.