Skip to content

Commit 1950a41

Browse files
.github/workflows/test_pyodide.yml: fix breakage, and test with different mupdf's.
* Use scripts/test.py directly. * Use .yml matrix to build different pyodide wheels without duplication of .yml code. * Build with default hard-coded mupdf, mupdf master and mupdf release branch.
1 parent daaf46d commit 1950a41

File tree

1 file changed

+19
-37
lines changed

1 file changed

+19
-37
lines changed

.github/workflows/test_pyodide.yml

Lines changed: 19 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,39 @@
11
name: Build Pyodide wheel
22

3+
# Builds pyodide wheels.
4+
35
on:
46
workflow_dispatch:
57

6-
inputs:
7-
PYMUPDF_SETUP_MUPDF_BUILD:
8-
description: 'Value for PYMUPDF_SETUP_MUPDF_BUILD, e.g.: git:--branch master https://github.com/ArtifexSoftware/mupdf.git'
9-
type: string
10-
#default: 'git:--branch master https://github.com/ArtifexSoftware/mupdf.git'
11-
default: '-'
12-
PYMUPDF_SETUP_PY_LIMITED_API:
13-
type: string
14-
default: '1'
15-
168
schedule:
179
- cron: '13 5 * * *'
1810

1911
jobs:
2012

21-
build_pyodide:
22-
23-
name: Build pyodide wheel
13+
pyodide:
14+
name: pyodide
2415
runs-on: ubuntu-latest
25-
2616
strategy:
2717
matrix:
28-
# Python version needs to match emsdk.
29-
python-version: ["3.12"]
30-
31-
# Avoid cancelling of all runs after a single failure.
18+
args: [
19+
'',
20+
'-m "git:--branch master https://github.com/ArtifexSoftware/mupdf"',
21+
'-m "git:--branch 1.26.x https://github.com/ArtifexSoftware/mupdf"',
22+
]
3223
fail-fast: false
3324

3425
steps:
35-
3626
- uses: actions/checkout@v4
37-
3827
- uses: actions/setup-python@v5
3928
with:
40-
python-version: ${{ matrix.python-version }}
41-
42-
- name: build_pyodide_wheel
43-
env:
44-
inputs_sdist: 0
45-
inputs_PYMUPDF_SETUP_MUPDF_BUILD: ${{inputs.PYMUPDF_SETUP_MUPDF_BUILD}}
46-
PYMUPDF_SETUP_PY_LIMITED_API: ${{inputs.PYMUPDF_SETUP_PY_LIMITED_API}}
47-
inputs_wheels_default: 0
48-
inputs_wheels_linux_pyodide: 1
29+
python-version: 3.12
30+
31+
- name: pyodide
4932
run:
50-
python scripts/gh_release.py build
51-
52-
53-
# Upload generated wheels, to be accessible from github Actions page.
54-
#
55-
- uses: actions/upload-artifact@v4
56-
with:
57-
path: ./wheelhouse/*.whl
33+
python scripts/test.py ${{matrix.args}} pyodide
34+
35+
# We do not use upload-artifact@v4 because it fails due to us creating
36+
# identically-named wheels.
37+
#- uses: actions/upload-artifact@v4
38+
# with:
39+
# path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)