|
1 | 1 | name: Build Pyodide wheel |
2 | 2 |
|
| 3 | +# Builds pyodide wheels. |
| 4 | + |
3 | 5 | on: |
4 | 6 | workflow_dispatch: |
5 | 7 |
|
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 | | - |
16 | 8 | schedule: |
17 | 9 | - cron: '13 5 * * *' |
18 | 10 |
|
19 | 11 | jobs: |
20 | 12 |
|
21 | | - build_pyodide: |
22 | | - |
23 | | - name: Build pyodide wheel |
| 13 | + pyodide: |
| 14 | + name: pyodide |
24 | 15 | runs-on: ubuntu-latest |
25 | | - |
26 | 16 | strategy: |
27 | 17 | 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 | + ] |
32 | 23 | fail-fast: false |
33 | 24 |
|
34 | 25 | steps: |
35 | | - |
36 | 26 | - uses: actions/checkout@v4 |
37 | | - |
38 | 27 | - uses: actions/setup-python@v5 |
39 | 28 | 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 |
49 | 32 | 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