Merge pull request #112 from lpsinger/missing-return-statements #19
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: 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@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: pip install pyodide-build | |
- shell: bash | |
run: | | |
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV | |
echo PYTHON_VERSION=$(pyodide config get python_version | cut -d "." -f 1-2) >> $GITHUB_ENV | |
- uses: mymindstorm/setup-emsdk@v12 | |
with: | |
version: ${{ env.EMSCRIPTEN_VERSION }} | |
actions-cache-folder: emsdk-cache | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
target: wasm32-unknown-emscripten | |
args: --release --out dist -i ${{ env.PYTHON_VERSION }} | |
sccache: 'true' | |
rust-toolchain: nightly | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wasm-wheels | |
path: dist |