Skip to content

Commit 8a5fb32

Browse files
committed
fix: pin rust version for emscripten build
1 parent f4236e9 commit 8a5fb32

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/emscripten.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,24 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.10'
18+
python-version: '3.12'
1919
- run: pip install pyodide-build
2020
- shell: bash
2121
run: |
2222
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
2323
echo PYTHON_VERSION=$(pyodide config get python_version | cut -d "." -f 1-2) >> $GITHUB_ENV
24-
- uses: mymindstorm/setup-emsdk@v12
24+
- uses: mymindstorm/setup-emsdk@v14
2525
with:
2626
version: ${{ env.EMSCRIPTEN_VERSION }}
2727
actions-cache-folder: emsdk-cache
28-
- name: Build wheels
29-
uses: PyO3/maturin-action@v1
30-
with:
31-
target: wasm32-unknown-emscripten
32-
args: --release --out dist -i ${{ env.PYTHON_VERSION }}
33-
sccache: 'true'
34-
rust-toolchain: nightly
28+
- shell: bash
29+
# rust version is pinned for compatibility with emscripten 3.1.58
30+
run: |
31+
pip install maturin
32+
rustup install nightly-2025-02-01
33+
rustup default nightly-2025-02-01
34+
rustup target add wasm32-unknown-emscripten
35+
maturin build --target wasm32-unknown-emscripten -i 3.12
3536
- name: Upload wheels
3637
uses: actions/upload-artifact@v4
3738
with:

0 commit comments

Comments
 (0)