Skip to content

Commit 40e3e6c

Browse files
authored
Merge pull request #57 from InsightSoftwareConsortium/wasm-ci
Wasm ci
2 parents 5aee1ae + 3b6d67e commit 40e3e6c

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/wasm.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: WebAssembly
2+
3+
on: [push,pull_request]
4+
5+
jobs:
6+
build-wasm:
7+
name: "Build WebAssembly"
8+
runs-on: ubuntu-22.04
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '18'
16+
17+
- name: Install
18+
run: |
19+
npm install
20+
21+
- name: Build
22+
run: |
23+
npm run build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "npm scripts to generate itk-wasm artifacts.",
55
"type": "module",
66
"scripts": {
7-
"build": "npm run emscripten && npm run bindgen",
7+
"build": "npm run emscripten && npm run bindgen && npm run wasi",
88
"emscripten": "npx itk-wasm -b emscripten-build build",
99
"bindgen": "npx itk-wasm -b emscripten-build bindgen --output-dir wasm/typescript --package-name mesh-to-poly-data --package-description \"Convert an ITK Mesh to a simple data structure compatible with vtkPolyData.\" --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'",
1010
"wasi": "npx itk-wasm -b wasi-build -i itkwasm/wasi build",

0 commit comments

Comments
 (0)