-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d0afb5
commit a624a09
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build Pyodide wheel | ||
|
||
on: | ||
push: | ||
|
||
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 | ||
|
||
schedule: | ||
- cron: '13 5 * * *' | ||
|
||
jobs: | ||
|
||
build_pyodide: | ||
|
||
name: Build pyodide wheel | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
# 2023-12-22: Python-3.12 is known to fail, due to setuptools trying to | ||
# import distutils. | ||
python-version: ["3.12"] | ||
|
||
# Avoid cancelling of all runs after a single failure. | ||
fail-fast: false | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
repository: pymupdf/PyMuPDF | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- run: pip install setuptools | ||
|
||
- name: build_pyodide_wheel | ||
env: | ||
inputs_sdist: 0 | ||
inputs_PYMUPDF_SETUP_MUPDF_BUILD: ${{inputs.PYMUPDF_SETUP_MUPDF_BUILD}} | ||
inputs_wheels_default: 0 | ||
inputs_wheels_linux_pyodide: 1 | ||
inputs_wheels_implementations: b | ||
run: | ||
python scripts/gh_release.py build | ||
|
||
|
||
# Upload generated wheels, to be accessible from github Actions page. | ||
# | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl |