-
Notifications
You must be signed in to change notification settings - Fork 58
44 lines (36 loc) · 981 Bytes
/
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: WebAssembly
on: [push,pull_request]
jobs:
build-wasm:
name: "Build WebAssembly"
runs-on: ubuntu-22.04
steps:
- name: 'Free up disk space'
run: |
# Workaround for https://github.com/actions/virtual-environments/issues/709
df -h
sudo apt-get update
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get autoremove -y
sudo apt-get clean
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf /usr/share/dotnet/
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Build TypeScript / JavaScript package
run: |
cd wasm/typescript
npm install
npm run build