Skip to content

Commit 5ec4207

Browse files
committed
ci: add Emscripten WASM build job
Add emscripten-wasm job to CI workflow: - Uses mymindstorm/setup-emsdk with Emscripten 3.1.61 - Configures with -DOPENDRIVE_BUILD_WASM=ON and Ninja generator - Builds WASM artifacts (libOpenDRIVE.js + .wasm) - Verifies artifact presence after build Signed-off-by: Carlo van Driesten <carlo.van-driesten@bmw.de>
1 parent f9f8931 commit 5ec4207

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,25 @@ jobs:
4444
- name: test
4545
run: ctest --test-dir build --output-on-failure
4646
- name: install
47-
run: cmake --install build --config Release
47+
run: cmake --install build --config Release
48+
build-wasm:
49+
name: emscripten-wasm
50+
runs-on: ubuntu-22.04
51+
defaults:
52+
run:
53+
shell: bash -e -o pipefail {0}
54+
steps:
55+
- name: checkout repository
56+
uses: actions/checkout@v4
57+
- name: setup emsdk
58+
uses: mymindstorm/setup-emsdk@v14
59+
with:
60+
version: 3.1.61
61+
- name: configure
62+
run: emcmake cmake -S . -B build-wasm -DOPENDRIVE_BUILD_WASM=ON -G Ninja
63+
- name: build
64+
run: cmake --build build-wasm
65+
- name: verify artifacts
66+
run: |
67+
test -f build-wasm/libOpenDRIVE.js
68+
test -f build-wasm/libOpenDRIVE.wasm

0 commit comments

Comments
 (0)