fix(ci): wasm-pack PATH + Dockerfile workspace stub

Two post-merge CI failures:

1. nvsim Dashboard → GitHub Pages: `wasm-pack: command not found`.
   `cargo install wasm-pack --locked` doesn't reliably leave the binary
   on PATH inside subsequent steps. Switched both Pages + a11y workflows
   to the canonical wasm-pack installer:
     curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
   which deposits to /home/runner/.cargo/bin/ that's already on PATH.

2. nvsim-server → ghcr.io: cargo can't resolve workspace.dependencies
   because the partial Cargo.toml copies only two crates. Dockerfile now
   generates a stub workspace Cargo.toml inline that lists just nvsim +
   nvsim-server with the workspace-deps section copied verbatim.

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
ruv
2026-04-27 12:46:25 -04:00
parent f5ec749d5c
commit 53f52bbe74
3 changed files with 38 additions and 29 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with: { targets: wasm32-unknown-unknown }
- run: cargo install wasm-pack --locked --version 0.13.x || true
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build nvsim WASM
working-directory: v2
+3 -1
View File
@@ -43,7 +43,9 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-nvsim-
- name: Install wasm-pack
run: cargo install wasm-pack --locked --version 0.13.x || true
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
which wasm-pack
- name: Build nvsim WASM
working-directory: v2