Skip to content

Commit

Permalink
move wasm wheel to default PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Jan 8, 2023
1 parent 355e734 commit 28fde38
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,38 @@ jobs:
with:
path: './wheelhouse/sourmash*.whl'

build_wasm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.10.2
- run: |
pip install 'pyodide-build>=0.22.0'
pyodide config get emscripten_version # trigger setup
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
- uses: mymindstorm/setup-emsdk@v11
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-emscripten
- run: |
export RUSTC_BOOTSTRAP=1
pyodide build
- uses: actions/upload-artifact@v3
with:
path: './dist/sourmash*.whl'


release:
name: Publish wheels
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v')
needs: build_wheels
needs: [build_wheels, build_wasm]

steps:
- name: Fetch wheels from artifacts
Expand Down
29 changes: 1 addition & 28 deletions .github/workflows/build_wheel_all_archs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: cibuildwheel_ubuntu

on:
pull_request: # use for testing modifications to this action
#pull_request: # use for testing modifications to this action
push:
branches: [latest]
tags: v*
Expand Down Expand Up @@ -77,37 +77,10 @@ jobs:
with:
path: './wheelhouse/sourmash*.whl'

build_wasm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.10.2
- run: |
pip install 'pyodide-build>=0.22.0'
pyodide config get emscripten_version # trigger setup
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
- uses: mymindstorm/setup-emsdk@v11
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-emscripten
- run: |
export RUSTC_BOOTSTRAP=1
pyodide build
- uses: actions/upload-artifact@v3
with:
path: './dist/sourmash*.whl'

release:
name: Publish wheels
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v')
needs: [build_wheels, build_wasm]

steps:
- name: Fetch wheels from artifacts
Expand Down

0 comments on commit 28fde38

Please sign in to comment.