Skip to content

ci: run the full verification pipeline on three OS runners - #88

Closed
google-labs-stitch[bot] wants to merge 1 commit into
mainfrom
stitch/ci-multi-os-matrix-jm0-91ccf360-ac8c-4b75-9251-fa1ee11d36d9
Closed

google-labs-stitch[bot] wants to merge 1 commit into
mainfrom
stitch/ci-multi-os-matrix-jm0-91ccf360-ac8c-4b75-9251-fa1ee11d36d9

Conversation

@google-labs-stitch

@google-labs-stitch google-labs-stitch Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This pull request updates .github/workflows/ci.yml to run the full Rust, wasm-pack, Binaryen, TypeScript and npm archive checks from source on ubuntu-latest, macos-latest and windows-latest with isolated matrix runs and an aggregate verify summary job. It also updates scripts/verify-pack.mjs so direct execution on Windows finds npm across MSI, Chocolatey, MSYS2 and Volta layouts without a shell, and documents the CI matrix and cross-shell commands in AGENTS.md.

Changes

  • Replace the Linux-only verify job in .github/workflows/ci.yml with a verify-os matrix (fail-fast: false) across ubuntu-latest, macos-latest and windows-latest, while keeping read-only permissions and commit-SHA action pins.
  • Install wasm-pack@0.15.1 (checksum: true) and each OS archive for Binaryen version_133 (x86_64-linux, arm64-macos and x86_64-windows), verify its official SHA-256 digest with node:crypto before extraction and add binaryen-version_133/bin to GITHUB_PATH.
  • Run cargo fmt --check, cargo clippy --locked --lib -- -D warnings, cargo build --locked --release, a check for libtunelet.so, libtunelet.dylib or tunelet.dll, RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps, cargo package --list --locked, npm ci, RUSTDOCFLAGS="-D warnings" npm run check:wasm and node scripts/verify-pack.mjs on each OS runner.
  • Add the verify summary job (needs: verify-os, if: ${{ always() }}) to report the combined matrix status under the verify check name.
  • Update scripts/verify-pack.mjs to locate npm-cli.js or npm.exe across MSI, %APPDATA%\npm, Chocolatey, MSYS2 and Volta layouts on Windows without a shell, while ignoring empty or relative PATH entries.
  • Update AGENTS.md in ASD-STE100 English to document the three-OS CI matrix and local commands for POSIX shells and PowerShell.
  • Keep .github/workflows/release.yml untouched for npm and crates.io OIDC trusted publishing.

Verification

  • Confirmed GitHub Actions run 45318733035 passed across verify-os (ubuntu-latest), verify-os (macos-latest), verify-os (windows-latest) and verify.
  • Validated .github/workflows/ci.yml and .github/workflows/release.yml with actionlint (0 errors).
  • Tested the Binaryen download, SHA-256 verification and extraction script against the official version_133 archives and digests.
  • Tested Windows npm path resolution against MSI, %APPDATA%\npm, Chocolatey, MSYS2, Volta and relative PATH scenarios.
  • Ran cargo fmt --check, cargo clippy --locked --lib -- -D warnings, cargo build --locked --release, RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps, cargo package --list --locked, npm ci, RUSTDOCFLAGS="-D warnings" npm run check:wasm and node scripts/verify-pack.mjs.

Automated PR initiated by user @byteland-app via Stitch Loop.

- Run the Rust, Wasm and npm checks on Linux, macOS and Windows
- Verify each Binaryen 133 archive with SHA-256 before extraction
- Check the native dynamic library after each Cargo release build
- Report the combined matrix result through the verify summary job
- Find npm across MSI, Chocolatey, MSYS2 and Volta in verify-pack.mjs
- Document the CI matrix and PowerShell commands in AGENTS.md
@byteland-app

Copy link
Copy Markdown
Contributor

Closing as superseded by #121. Running the full LTO Wasm + Binaryen build on all three OS runners is unnecessarily slow and expensive, and embeds a 68-line inline Node script in ci.yml. Splitting Linux Wasm build from cross-OS native checks in #121 is cleaner.

@byteland-app
byteland-app deleted the stitch/ci-multi-os-matrix-jm0-91ccf360-ac8c-4b75-9251-fa1ee11d36d9 branch November 25, 2026 08:05
@google-labs-stitch

Copy link
Copy Markdown
Contributor Author

Understood. Pull request #121 supersedes this pull request, so this branch stays closed with no further changes.

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