Bump mymindstorm/setup-emsdk from 12 to 13 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WASM | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-wasm-emscripten: | |
name: Pyodide | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install pyodide-build | |
run: pip install pyodide-build==0.23.4 | |
- name: Compute emsdk version | |
id: compute-emsdk-version | |
run: | | |
pyodide xbuildenv install --download | |
EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) | |
echo "emsdk-version=$EMSCRIPTEN_VERSION" >> $GITHUB_OUTPUT | |
- uses: mymindstorm/setup-emsdk@v13 | |
with: | |
version: ${{ steps.compute-emsdk-version.outputs.emsdk-version }} | |
actions-cache-folder: emsdk-cache | |
# A future version of pyodide may switch to -fwasm-exceptions | |
- name: Build | |
run: CFLAGS=-fexceptions LDFLAGS=-fexceptions pyodide build | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: dist/*.whl | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up Pyodide virtual environment | |
run: | | |
pyodide venv .venv-pyodide | |
.venv-pyodide/bin/pip install $(echo -n dist/*.whl)[test] | |
- name: Test | |
run: .venv-pyodide/bin/pytest |