-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (43 loc) · 1.2 KB
/
test-wasm.yml
File metadata and controls
52 lines (43 loc) · 1.2 KB
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
# Test WebAssembly build in cockle deployment
name: Test WebAssembly
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Install mamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: wasm/wasm-environment.yml
cache-environment: true
- name: Build
shell: bash -l {0}
working-directory: wasm
run: |
cmake .
make build-recipe
make build-test
- name: Install playwright chromium
shell: bash -l {0}
working-directory: wasm/test
run: |
npx playwright install chromium
- name: Upload artifact containing emscripten-forge package
uses: actions/upload-pages-artifact@v4
with:
path: ./wasm/recipe/em-forge-recipes/output/
- name: Run WebAssembly tests
shell: bash -l {0}
working-directory: wasm
run: |
make test