From ed64e3f9a602ee5e5994eb84e6e7f9f330ff3294 Mon Sep 17 00:00:00 2001 From: "Jiaxiao (mossaka) Zhou" Date: Tue, 17 Feb 2026 17:22:09 +0000 Subject: [PATCH 1/2] 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) --- .github/workflows/docs.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bab5eb3f19f..55bf8b11039 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,11 +11,17 @@ on: pull_request: paths: - 'docs/**' + - 'cmd/gh-aw-wasm/**' + - 'pkg/**' + - 'scripts/bundle-wasm-docs.sh' push: branches: - main paths: - 'docs/**' + - 'cmd/gh-aw-wasm/**' + - 'pkg/**' + - 'scripts/bundle-wasm-docs.sh' # Allow this job to clone the repo and create a page deployment permissions: @@ -43,6 +49,15 @@ jobs: cache: 'npm' cache-dependency-path: 'docs/package-lock.json' + - name: Set up Go + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 + with: + go-version-file: go.mod + cache: true + + - name: Build WebAssembly compiler for docs + run: ./scripts/bundle-wasm-docs.sh + - name: Install dependencies working-directory: ./docs run: npm ci From f37e00a7ba7111e1fd9140d2e990a1987b540810 Mon Sep 17 00:00:00 2001 From: "Jiaxiao (mossaka) Zhou" Date: Tue, 17 Feb 2026 20:24:51 +0000 Subject: [PATCH 2/2] 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) --- .github/workflows/docs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 55bf8b11039..7990434b0e9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,6 +14,10 @@ on: - 'cmd/gh-aw-wasm/**' - 'pkg/**' - 'scripts/bundle-wasm-docs.sh' + - '.github/workflows/docs.yml' + - 'go.mod' + - 'go.sum' + - 'Makefile' push: branches: - main @@ -22,6 +26,10 @@ on: - 'cmd/gh-aw-wasm/**' - 'pkg/**' - 'scripts/bundle-wasm-docs.sh' + - '.github/workflows/docs.yml' + - 'go.mod' + - 'go.sum' + - 'Makefile' # Allow this job to clone the repo and create a page deployment permissions: