Skip to content

Commit

Permalink
ci: update emscripten build
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed May 28, 2024
1 parent 54eb2dd commit f864991
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/emscripten.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,17 @@ jobs:
python-version: "3.11"

- name: Install pyodide-build
run: pip install pyodide-build==0.25.1

- name: Compute emsdk version
id: compute-emsdk-version
run: |
# Prepare xbuild environment (side-effect)
pyodide config list
# Save EMSDK version
EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
echo "emsdk-version=$EMSCRIPTEN_VERSION" >> $GITHUB_OUTPUT
pip install pyodide-build==0.25.1
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ steps.compute-emsdk-version.outputs.emsdk-version }}
version: ${{ env.EMSCRIPTEN_VERSION }}
actions-cache-folder: emsdk-cache

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

- uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit f864991

Please sign in to comment.