-
-
Notifications
You must be signed in to change notification settings - Fork 840
44 lines (35 loc) · 1021 Bytes
/
build-wasm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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.53
- 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 python/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/*