Skip to content

Commit

Permalink
Update emscripten.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Jun 13, 2024
1 parent 285407a commit 51fab6c
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions .github/workflows/emscripten.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,6 @@ concurrency:
cancel-in-progress: true

jobs:
build-wasm-emscripten:
name: Pyodide wheel
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install pyodide-build
run: |
pip install pyodide-build==0.25.1
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
actions-cache-folder: emsdk-cache

- name: Build
run: CFLAGS=-fexceptions LDFLAGS=-fexceptions pyodide build --exports whole_archive

- uses: actions/setup-node@v4
with:
node-version: 20

- 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

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: emscripten-wheel
path: dist/*.whl

build-pyodide:
name: Pyodide cibuildwheel
runs-on: ubuntu-22.04
Expand All @@ -68,7 +24,7 @@ jobs:
submodules: true
fetch-depth: 0

- uses: pypa/cibuildwheel@henryiii-patch-1
- uses: pypa/cibuildwheel@v2.19
env:
CIBW_PLATFORM: pyodide

Expand Down

0 comments on commit 51fab6c

Please sign in to comment.