Add WASM wheels build #3
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: test-for-pyodide | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- main | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: all | |
- run: rustup target add wasm32-unknown-emscripten | |
- name: Build wheels | |
uses: pypa/[email protected] | |
timeout-minutes: 720 | |
env: | |
CIBW_PLATFORM: "pyodide" | |
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"' | |
CIBW_ENVIRONMENT_LINUX: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_NET_GIT_FETCH_WITH_CLI="true"' | |
CIBW_BEFORE_BUILD: > | |
rustup default nightly && | |
rustup show | |
CIBW_BEFORE_BUILD_LINUX: > | |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y && | |
rustup show | |
CIBW_TEST_REQUIRES: pytest pytest-xdist | |
CIBW_TEST_COMMAND: pytest {project} -m "not datasets" --durations=10 -n logical |