-
Notifications
You must be signed in to change notification settings - Fork 9
68 lines (52 loc) · 1.69 KB
/
build_pyodide.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
- name: Upload custom gh_release.py
uses: actions/upload-artifact@v2
with:
name: gh_release.py
path: gh_release.py
- uses: actions/checkout@v2
with:
repository: pymupdf/PyMuPDF
- name: Override gh_release.py
uses: actions/download-artifact@v2
with:
name: gh_release.py
path: scripts
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- 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:
sudo apt-get install python3-distutils && 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