ci: build wasm binary during docs deployment#16306
Closed
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables the docs deployment workflow to build the WebAssembly compiler binary, ensuring the interactive playground in the documentation always uses the latest compiler code. The workflow now sets up Go and runs the wasm bundling script before building the Astro documentation site.
Changes:
- Added path triggers to rebuild docs when Go source code affecting the wasm build changes (
cmd/gh-aw-wasm/**,pkg/**,scripts/bundle-wasm-docs.sh) - Added Go setup and wasm build steps to the docs build job, running before the Astro build
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Mossaka
added a commit
that referenced
this pull request
Feb 17, 2026
The live editor at /gh-aw/editor/ fails with "Failed to execute 'importScripts' on 'WorkerGlobalScope'" because wasm_exec.js and gh-aw.wasm are gitignored build artifacts that were never built during the docs deployment pipeline. Add Go setup and scripts/bundle-wasm-docs.sh to the docs workflow so the WebAssembly compiler is built and placed in docs/public/wasm/ before the Astro build. Also expand path triggers to rebuild docs when wasm-related source files change. Supersedes #16306. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 tasks
Mossaka
added a commit
that referenced
this pull request
Feb 17, 2026
…6406) * ci: build wasm compiler during docs deployment to fix live editor The live editor at /gh-aw/editor/ fails with "Failed to execute 'importScripts' on 'WorkerGlobalScope'" because wasm_exec.js and gh-aw.wasm are gitignored build artifacts that were never built during the docs deployment pipeline. Add Go setup and scripts/bundle-wasm-docs.sh to the docs workflow so the WebAssembly compiler is built and placed in docs/public/wasm/ before the Astro build. Also expand path triggers to rebuild docs when wasm-related source files change. Supersedes #16306. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: expand docs workflow path triggers per review - Add .github/workflows/docs.yml itself so workflow changes trigger CI - Add go.mod, go.sum, Makefile so dependency/build changes trigger rebuild Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/bundle-wasm-docs.shbefore the Astro buildcmd/gh-aw-wasm/**,pkg/**, andscripts/bundle-wasm-docs.shso Go changes affecting the wasm build trigger a docs rebuildTest plan
cmd/gh-aw-wasm/,pkg/, orscripts/bundle-wasm-docs.shbundle-wasm-docs.shruns before the Astro build🤖 Generated with Claude Code