Skip to content

Commit

Permalink
Merge pull request #1 from thewtex/wasm-ci
Browse files Browse the repository at this point in the history
Add WebAssembly CI configuration
  • Loading branch information
thewtex authored Aug 25, 2023
2 parents 658599c + eebae74 commit 28e8b78
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: WebAssembly

on: [push,pull_request]

jobs:
build-wasm:
name: "build-test-wasm"
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '18'

- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Generate TypeScript, JavaScript package
run: |
npm run bindgen:typescript
- name: Build TypeScript, JavaScript package
working-directory: ./typescript
run: |
npm install
npm run build
- name: Generate Python packages
run: |
npm run bindgen:python
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: '3.10'

- name: Test Python WASI
working-directory: ./python/itkwasm-isic-superpixel-wasi
run: |
pip install hatch
hatch run test

0 comments on commit 28e8b78

Please sign in to comment.