-
Notifications
You must be signed in to change notification settings - Fork 23
64 lines (54 loc) · 1.46 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: WebAssembly
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
build-wasm:
name: "build-test-wasm"
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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '18'
- name: Install
run: |
npm ci
npm run build:testData
- name: Build TypeScript
working-directory: ./wasm/typescript
run: |
npm ci
npm run build
- name: Test TypeScript
working-directory: ./wasm/typescript
run: |
npm test
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: '3.10'
- name: Test Python WASI
working-directory: ./wasm/python/itkwasm-elastix-wasi
run: |
pip install hatch
hatch run test