Skip to content

Commit 8b6dd69

Browse files
authored
ci: fix pyodide build
1 parent e7deae5 commit 8b6dd69

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

.github/workflows/enscripten.yaml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,12 @@ jobs:
2222

2323
- uses: actions/setup-python@v5
2424
with:
25-
python-version: "3.11"
25+
python-version: "3.12"
2626

27-
- name: Install pyodide-build
28-
run: pip install pyodide-build==0.23.4
29-
30-
- name: Compute emsdk version
31-
id: compute-emsdk-version
32-
run: |
33-
pyodide xbuildenv install --download
34-
EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
35-
echo "emsdk-version=$EMSCRIPTEN_VERSION" >> $GITHUB_OUTPUT
36-
37-
- uses: mymindstorm/setup-emsdk@v14
38-
with:
39-
version: ${{ steps.compute-emsdk-version.outputs.emsdk-version }}
40-
actions-cache-folder: emsdk-cache
41-
42-
# A future version of pyodide may switch to -fwasm-exceptions
43-
- name: Build
44-
run: CFLAGS=-fexceptions LDFLAGS=-fexceptions pyodide build
27+
- run: pypa/[email protected]
28+
env:
29+
CIBW_PLATFORM: pyodide
4530

4631
- uses: actions/upload-artifact@v4
4732
with:
4833
path: dist/*.whl
49-
50-
- uses: actions/setup-node@v4
51-
with:
52-
node-version: 18
53-
54-
- name: Set up Pyodide virtual environment
55-
run: |
56-
pyodide venv .venv-pyodide
57-
.venv-pyodide/bin/pip install $(echo -n dist/*.whl)[test]
58-
59-
- name: Test
60-
run: .venv-pyodide/bin/pytest

0 commit comments

Comments
 (0)