Skip to content

Comments

ci: build wasm binary during docs deployment#16306

Closed
Mossaka wants to merge 1 commit intomainfrom
ci/docs-wasm-build
Closed

ci: build wasm binary during docs deployment#16306
Mossaka wants to merge 1 commit intomainfrom
ci/docs-wasm-build

Conversation

@Mossaka
Copy link
Collaborator

@Mossaka Mossaka commented Feb 17, 2026

Summary

  • Adds Go setup and WebAssembly compiler build step to the docs deployment workflow, running scripts/bundle-wasm-docs.sh before the Astro build
  • Expands path triggers to include cmd/gh-aw-wasm/**, pkg/**, and scripts/bundle-wasm-docs.sh so Go changes affecting the wasm build trigger a docs rebuild

Test plan

  • Verify docs workflow triggers on PRs touching cmd/gh-aw-wasm/, pkg/, or scripts/bundle-wasm-docs.sh
  • Verify Go is set up correctly and bundle-wasm-docs.sh runs before the Astro build
  • Verify the docs build still succeeds end-to-end

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 17, 2026 07:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
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>
@Mossaka Mossaka closed this Feb 17, 2026
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