build(ui): build core.wasm in CI, stop committing the binary (F6) #30
Reference in New Issue
Block a user
Delete Branch "feature/ui-finalize-f6-wasm-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
F6 — Build core.wasm in CI (stop committing the binary)
From
ui/PLAN-finalize.mdF6. Thecore.wasmartefact was committed andhad to be rebuilt by hand on every Go-bridge change (which bit us). Now
CI builds it from source and it is no longer tracked.
What changed
ui/frontend/static/core.wasmandwasm_exec.jsare untracked +gitignored.
.gitea/actions/build-wasm:actions/cacheTinyGo 0.41.1 → install →
make -C ui wasm.ui-test(beforethe Playwright run — Vitest uses the fake Core and needs no wasm; the
workflow also gains the Go setup it lacked),
dev-deploy, andprod-build(Go already set up there).ui/docs/wasm-toolchain.md,ui/README.md.Note (scope vs plan)
The plan named only
ui-test, butdev-deploy/prod-buildbuild thebundle on the runner too (
pnpm build), so they need the wasm builtfirst. TinyGo is cached, so the recurring cost is the
make wasmCPU,not a per-run download.
Verification
make -C ui wasmbuilds locally; the push CI run passed — TinyGoinstalled on the runner,
make wasmran, and Playwright passed againstthe freshly-built artefact.
🤖 Generated with Claude Code