Skip to content

Commit 492fe00

Browse files
committed
Add WASM CI job
1 parent 6f750a6 commit 492fe00

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/wasm.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0 OR ISC
3+
4+
name: WASM Build & Test
5+
on:
6+
push:
7+
branches: ["*"]
8+
pull_request:
9+
branches: ["*"]
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref_name }}
12+
cancel-in-progress: true
13+
permissions:
14+
contents: read
15+
16+
env:
17+
EMSDK_VERSION: "3.1.51"
18+
19+
jobs:
20+
wasm-build-test:
21+
if: github.repository_owner == 'aws'
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: '20'
30+
31+
- name: Install build dependencies
32+
run: |
33+
sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
34+
sudo apt-get -y --no-install-recommends install cmake ninja-build
35+
36+
- name: Setup Emscripten SDK
37+
uses: mymindstorm/setup-emsdk@v14
38+
with:
39+
version: ${{ env.EMSDK_VERSION }}
40+
41+
- name: Verify Emscripten installation
42+
run: |
43+
emcc --version
44+
node --version
45+
46+
- name: Run WASM tests
47+
env:
48+
EMSDK_PATH: ${{ env.EMSDK }}
49+
run: |
50+
./tests/ci/run_wasm_tests.sh

0 commit comments

Comments
 (0)