Skip to content

Commit f78c69d

Browse files
committed
- test pyodide
1 parent 1c4ce19 commit f78c69d

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build python-libsbml Wheel (pyodide)
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
make_sdist:
8+
name: Make SDist
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0 # Optional, use if you use setuptools_scm
14+
15+
- name: checkout needed submodules
16+
shell: bash
17+
run: |
18+
./.github/workflows/checkout-submodules.sh
19+
20+
- name: Build SDist
21+
run: pipx run build --sdist
22+
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
path: dist/*.tar.gz
26+
name: libSBML-sdist
27+
28+
build_wheels:
29+
name: Wheel on ${{ matrix.os }}
30+
runs-on: ubuntu-latest
31+
needs: make_sdist
32+
33+
steps:
34+
- uses: actions/download-artifact@v4
35+
with:
36+
name: libSBML-sdist
37+
38+
- name: Extract sdist into the current directory
39+
shell: bash
40+
run: |
41+
tar zxf *.tar.gz --strip-components=1
42+
43+
44+
- uses: actions/setup-python@v5
45+
with:
46+
python-version: '3.12'
47+
48+
- name: Install cibuildwheel
49+
run: |
50+
python -m pip install cibuildwheel==3.4.0 swig==4.4.1 cmake==3.31.6
51+
52+
# print versions
53+
python --version
54+
cmake --version
55+
swig -version
56+
57+
- name: Build Wheels
58+
run: |
59+
python -m cibuildwheel --output-dir wheelhouse
60+
env:
61+
CIBW_PLATFORM: pyodide
62+
CIBW_BEFORE_BUILD_LINUX: "pip install swig==4.4.1"
63+
64+
- name: Upload wheels
65+
uses: actions/upload-artifact@v4
66+
with:
67+
path: wheelhouse/*.whl
68+
name: libSBML-pyodide

0 commit comments

Comments
 (0)