-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.01 KB
/
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
45
46
name: Build WebAssembly
on:
push:
branches: [main]
pull_request:
jobs:
build-wasm:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "8.0.x"
- name: Restore tools
run: dotnet tool restore
- name: Setup Node.js environment
uses: actions/[email protected]
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install wasm-pack
run: npm install -g wasm-pack
- name: Build F#
run: npm run build:examples:pong:rust
- name: Build runtime wasm bundle
run: wasm-pack build --target web
working-directory: runtime/functor-runtime-web
- name: Build pong wasm bundle
run: wasm-pack build --target web
working-directory: examples/Pong/build-wasm