Build Pyodide wheel #552
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pyodide wheel | |
on: | |
workflow_dispatch: | |
inputs: | |
PYMUPDF_SETUP_MUPDF_BUILD: | |
description: 'Value for PYMUPDF_SETUP_MUPDF_BUILD, e.g.: git:--branch master https://github.com/ArtifexSoftware/mupdf.git' | |
type: string | |
#default: 'git:--branch master https://github.com/ArtifexSoftware/mupdf.git' | |
default: '-' | |
PYMUPDF_SETUP_PY_LIMITED_API: | |
type: string | |
default: '1' | |
schedule: | |
- cron: '13 5 * * *' | |
jobs: | |
build_pyodide: | |
name: Build pyodide wheel | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Python version needs to match emsdk. | |
python-version: ["3.12"] | |
# Avoid cancelling of all runs after a single failure. | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: build_pyodide_wheel | |
env: | |
inputs_sdist: 0 | |
inputs_PYMUPDF_SETUP_MUPDF_BUILD: ${{inputs.PYMUPDF_SETUP_MUPDF_BUILD}} | |
PYMUPDF_SETUP_PY_LIMITED_API: ${{inputs.PYMUPDF_SETUP_PY_LIMITED_API}} | |
inputs_wheels_default: 0 | |
inputs_wheels_linux_pyodide: 1 | |
run: | |
python scripts/gh_release.py build | |
# Upload generated wheels, to be accessible from github Actions page. | |
# | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: ./wheelhouse/*.whl |