Skip to content

Commit 64e7730

Browse files
committed
examples : add wchess.wasm to wasm examples build
This commit add the wchess.wasm example to the wasm examples that are deployed to https://ggml.ai/whisper.cpp. Refs: #3434 (comment)
1 parent 1e5ad50 commit 64e7730

File tree

11 files changed

+4400
-8
lines changed

11 files changed

+4400
-8
lines changed

.github/workflows/examples-wasm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
cp ${build_dir}/stream.wasm/{index.html,stream.js,helpers.js} ${target_dir}
6868
cp ${build_dir}/libstream.js ${target_dir}
6969
70+
# wchess.wasm
71+
target_dir=staging/wchess.wasm
72+
mkdir -p ${target_dir}
73+
cp -r ${build_dir}/wchess.wasm/{index.html,css,img,js} ${target_dir}
74+
cp ${build_dir}/wchess.wasm.js ${target_dir}
75+
7076
# whisper.wasm (this will be the main example page)
7177
target_dir=staging
7278
mkdir -p ${target_dir}

examples/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ if (EMSCRIPTEN)
9898
add_subdirectory(stream.wasm)
9999
add_subdirectory(command.wasm)
100100
add_subdirectory(bench.wasm)
101+
add_subdirectory(wchess)
101102
elseif(CMAKE_JS_VERSION)
102103
add_subdirectory(addon.node)
103104
else()

0 commit comments

Comments
 (0)