Skip to content

docs: rename instance differently from class #32

docs: rename instance differently from class

docs: rename instance differently from class #32

Workflow file for this run

name: emscripten
on:
push:
branches:
- master
pull_request:
branches:
- master
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
emscripten:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: pip install pyodide-build
- shell: bash
run: |
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
echo "$EMSCRIPTEN_VERSION"
echo PYTHON_VERSION=$(pyodide config get python_version | cut -d "." -f 1-2) >> $GITHUB_ENV
echo "$PYTHON_VERSION"
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
actions-cache-folder: emsdk-cache
- shell: bash
# rust version is pinned for compatibility with emscripten 3.1.58
run: |
pip install maturin==1.12.4
# rustup install nightly-2025-02-01
# rustup default nightly-2025-02-01
rustup install nightly
rustup default nightly
rustup target add wasm32-unknown-emscripten
maturin build --target wasm32-unknown-emscripten -i 3.13