Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,43 @@ jobs:
name: wheels-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.manylinux || 'auto' }}
path: dist

build-pyodide:
name: build pyodide wheel
permissions:
contents: read
if: success()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: install rust stable
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
with:
target: wasm32-unknown-emscripten

- name: Install correct python version
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 #v6.3.0
with:
python-version: 3.14

- name: Build wheel
run: |
python3 -m pip install cibuildwheel==4.1.0
python3 -m cibuildwheel --output-dir dist
env:
CIBW_PLATFORM: pyodide

- run: ls -lh dist/

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: wheels-pyodide
path: dist

release:
needs: [build, check]
needs: [build, build-pyodide, check]
if: success() && startsWith(github.ref, 'refs/tags/')

runs-on: ubuntu-latest
Expand All @@ -280,7 +315,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1.14

gh-release:
needs: [build, check]
needs: [build, build-pyodide, check]
if: success() && startsWith(github.ref, 'refs/tags/')

runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ build-backend = "maturin"
[tool.maturin]
module-name = "python_calamine._python_calamine"
python-source = "python"

[tool.cibuildwheel.pyodide]
build = "cp314-*"
test-requires = ["pytest"]
test-command = "python -m pytest {project}/tests -x"
Loading