Skip to content

Build the WebAssembly archive in CI and publish it with each release - #227

Merged
nyosegawa merged 1 commit into
mainfrom
wasm-ci
Nov 20, 2026
Merged

nyosegawa merged 1 commit into
mainfrom
wasm-ci

Conversation

@nyosegawa

@nyosegawa nyosegawa commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Builds on #226 (base wasm-threads, built on 0701a88), which builds on #225.

What changed

  • A wasm job in .github/workflows/build.yml installs Emscripten 7.0.0 through emsdk checked out at the tag's commit (1693ce7), builds both WebAssembly modules, and packs speech-<VERSION>-wasm.zip: libspeech.js, libspeech.wasm, libspeech-threads.js, libspeech-threads.wasm, speech.mjs, wav.mjs, index.html, page.mjs, worker.mjs, serve.py and speech.h.
  • The job checks the archive as a page serves it: wasm_browser_smoke.mjs --started <folder> <VERSION> opens the page in the runner's headless Chrome, cross-origin isolated, and both modules start in a Worker and give the release. CI runs no check that needs a model, so the smoke gained this form, which needs no model and no native speech.
  • The release job waits for wasm and publishes its archive with the others, summed in SHA256SUMS; its notes mention it. The installers pick their archive by name and are unchanged.
  • Docs: docs/install.md's Release archives lists wasm and its files; docs/browser.md says where to get it; README.md and README.ja.md point to it and have a Browser badge. The release skill checks the published archive with Silero VAD, with and without threads. AGENTS.md describes --started.

Checked

  • wasm_browser_smoke.mjs --started on a folder laid out as the archive: both modules start and give 0.11.0; given 0.11.1 it fails, naming the module and the version it gave.
  • The full smoke on the same folder, with and without --threads 4.
  • The workflow parses as YAML; the wasm job itself runs in this pull request's CI.

🤖 Generated with Claude Code

@nyosegawa
nyosegawa changed the base branch from wasm-threads to main November 20, 2026 16:54
@nyosegawa

Copy link
Copy Markdown
Owner Author

Checked outside CI: the speech-wasm artifact of this pull request's first CI run (speech-0.11.0-wasm.zip, unpacked) passes the full wasm_browser_smoke.mjs on an Apple M5 with Silero VAD and seven WAVE files, without threads and with --threads 4; the wasm job's own check printed libspeech started: speech.cpp 0.11.0 and libspeech-threads started: speech.cpp 0.11.0.

A wasm job builds both WebAssembly modules with the Emscripten of emsdk's
tag 7.0.0, pinned by its commit, and packs them with speech.mjs, wav.mjs, the
page, serve.py and speech.h into speech-<VERSION>-wasm.zip, which the release
job now waits for and publishes beside the other archives, summed in
SHA256SUMS. The job checks the archive as a page serves it: in a headless
Chrome the page opens cross-origin isolated, and both modules start in a
Worker and give the release. CI runs no check that needs a model, so this is
the smoke's new --started, which takes no model and needs no native speech.

The installers choose their archive by name and are unchanged.
docs/install.md lists the archive and what it holds, docs/browser.md says
where to get it, README.md and README.ja.md point to it and have a badge, and
the release skill checks the published archive with Silero VAD, with threads
and without.

Checked: wasm_browser_smoke.mjs --started on a folder laid out as the
archive, which fails when it is given another release; the full smoke on the
same folder with and without --threads 4. The workflow parses as YAML; the
job runs in this pull request's CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nyosegawa
nyosegawa merged commit 40ce36c into main Nov 20, 2026
8 checks passed
@nyosegawa
nyosegawa deleted the wasm-ci branch November 20, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant