Skip to content

Commit d2f7b4b

Browse files
committed
Add test-wasm CI run, on demand only
1 parent f0040c8 commit d2f7b4b

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/test-wasm.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Test WebAssembly build in cockle deployment
2+
name: Test WebAssembly
3+
4+
on:
5+
workflow_dispatch:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v6
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: '3.14'
22+
23+
- name: Install mamba
24+
uses: mamba-org/setup-micromamba@v2
25+
with:
26+
environment-file: wasm/wasm-environment.yml
27+
cache-environment: true
28+
29+
- name: Build
30+
shell: bash -l {0}
31+
working-directory: wasm
32+
run: |
33+
cmake .
34+
make build-recipe
35+
make built-test
36+
37+
- name: Upload artifact containing emscripten-forge package
38+
uses: actions/upload-pages-artifact@v4
39+
with:
40+
path: ./wasm/recipe/em-forge-recipes/output/
41+
42+
- name: Run WebAssembly tests
43+
shell: bash -l {0}
44+
working-directory: wasm
45+
run: |
46+
make test

0 commit comments

Comments
 (0)