Skip to content

Commit

Permalink
Added a build script for WASM wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Dec 11, 2023
1 parent b96c5ec commit e3273c3
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build WASM

on: [workflow_call, workflow_dispatch]

jobs:
build-wasm:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Install Emscripten
uses: mymindstorm/setup-emsdk@v13
with:
version: 3.1.45

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Install Nightly Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: ${{ matrix.arch }}

- name: Install Python packages
run: pip install -r requirements.txt

- name: Build WASM wheel
run: make build-wasm

- name: Upload WASM wheel
uses: actions/upload-artifact@v3
with:
name: pyxel-wasm-wheel
path: dist/*

0 comments on commit e3273c3

Please sign in to comment.