summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-05-01 00:14:24 -0700
committerGitHub <noreply@github.com>2025-05-01 00:14:24 -0700
commit15fce7c8f11985be5ac1fdb1f180a30150e9db89 (patch)
treedc801f723860b852a7fb8966de8e8d22bb825723 /.github/workflows
parenta8d7bb9f781fd77080f07bfaab54fbbcf3a3686d (diff)
Smoke test WASM as a part of CI (#6969)
* Simplify build of slang-wasm * Add smoke-test for slang-wasm in ci * Avoid git-clone playground
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 46db88275..e2598cd73 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -135,8 +135,12 @@ jobs:
cmake --install build --config Release --component generators --prefix generators
emcmake cmake -DSLANG_GENERATORS_PATH=generators/bin --preset emscripten -DSLANG_SLANG_LLVM_FLAVOR=DISABLE
cmake --build --preset emscripten --config "$cmake_config" --target slang-wasm
- [ -f "build.em/$cmake_config/bin/slang-wasm.wasm" ]
- [ -f "build.em/$cmake_config/bin/slang-wasm.js" ]
+ mkdir "build.em/$cmake_config/bin/smoke"
+ cp tests/wasm/smoke/* "build.em/$cmake_config/bin/smoke/"
+ cd "build.em/$cmake_config/bin"
+ [ -f "slang-wasm.wasm" ]
+ [ -f "slang-wasm.js" ]
+ node smoke/smoke-test.js smoke/rand_float.slang computeMain
else
if [[ "${{ matrix.os }}" =~ "windows" && "${{ matrix.config }}" != "release" && "${{ matrix.config }}" != "releaseWithDebugInfo" ]]; then
# Doing a debug build will try to link against a release built llvm, this