Repository navigation
ci: split Wasm build from cross-OS native checks - #121
Merged
byteland-app merged 3 commits intoNov 26, 2026
Merged
byteland-app merged 3 commits into
byteland-app merged 3 commits into
Conversation
- Check lints, rustdoc and the crate list in build-wasm on Linux - Upload pkg/ from build-wasm as a short-lived artifact - Verify native release libraries and npm archives on three OS runners - Keep verify as the final gate job for branch protection - Add --ignore-scripts and Windows npm lookup to verify-pack.mjs - Document the cross-OS checks and shell commands in AGENTS.md
Contributor
|
Review: Preferred over #88 for cross-OS CI (builds Wasm once on Linux and runs native checks on all three OS runners). Please simplify before merge: invoke 'npm run verify:pack -- --ignore-scripts' in ci.yml so process.env.npm_execpath is provided automatically, allowing removal of the ~230 lines of heuristic Windows npm path discovery in scripts/verify-pack.mjs. Also rebase onto #118. |
- Merge main into the cross-OS CI branch - Run npm run verify:pack -- --ignore-scripts in ci.yml - Remove the Windows path heuristics from verify-pack.mjs - Add --ignore-scripts to parseCliOptions in verify-pack.mjs - Update the verify:pack instructions in AGENTS.md
Contributor
Author
|
Addressed in
|
Contributor
- Merge main through v0.3.4 with #90 and #120. - Use ./.github/actions/setup-wasm in the build-wasm job. - Add the optional node-cache input to setup-wasm. - Read .node-version in the check-os job. - Include the msrv job in the verify status check. - Update AGENTS.md for the --release flag and the msrv job.
Contributor
Author
|
Synced with updated
|
byteland-app
deleted the
stitch/ci-split-wasm-cross-os-checks-jm0-de807871-47e5-49b8-bd18-9b33ee965077
branch
November 26, 2026 03:20
This was referenced Nov 26, 2026
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
.github/workflows/ci.ymlintobuild-wasm(ubuntu-latestvia./.github/actions/setup-wasmwithnode-cache: ""),check-os(ubuntu-latest,macos-latestandwindows-latestwithfail-fast: false),msrv(rust-version1.88from#120) andverify(needs: [build-wasm, check-os, msrv],if: always()) while read-only permissions, pull-request concurrency cancellation,cargo package --lockedand commit-SHA action pins stay intact.node-cacheinput (default: "npm") to.github/actions/setup-wasm/action.ymlsorelease.ymlretainscache: "npm"unchanged whilebuild-wasmavoids saving an empty~/.npmcache onubuntu-latestahead ofcheck-os.pkg/tunelet.js,pkg/tunelet.d.tsandpkg/tunelet_bg.wasmfrombuild-wasmas a short-lived artifact (wasm-pkg,retention-days: 1) and download it incheck-oswithdigest-mismatch: error.libtunelet.so,libtunelet.dylibandtunelet.dll), compile TypeScript7.0.2and runnpm run verify:pack -- --ignore-scriptson each OS runner (with Node.js configured from.node-version) without a second Wasm build.--ignore-scriptssupport (parseCliOptionsandverifyPrebuiltFiles) toscripts/verify-pack.mjsso bothtuneletand@bytelandtechnology/tuneletarchives are verified usingprocess.env.npm_execpathsupplied automatically bynpm run.msrv) and cross-shell (sh, PowerShell andcmd.exe) local verification commands inAGENTS.md.Verification
.github/actions/setup-wasm/action.yml,.github/workflows/ci.ymland.github/workflows/release.ymlwithactionlint -verbose.cargo build --locked --release,cargo fmt --check,cargo clippy --locked --lib -- -D warnings,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps,cargo package --lockedandRUSTDOCFLAGS="-D warnings" npm run check:wasm.npm run verify:pack -- --out-dir(sha256sum --check --strict SHA256SUMS.txt) and the split artifact flow (npm run build:wasm,npm run build:tsandnpm run verify:pack -- --ignore-scriptswithoutwasm-packonPATH) for bothtuneletand@bytelandtechnology/tunelet.Automated PR initiated by user @byteland-app via Stitch Loop.