Skip to content

build(win): cross-platform build script + windows-latest probe CI (#43) → 1.28.2 - #111

Merged
sandstream merged 3 commits into
mainfrom
fix/win-build-script
Jun 24, 2026
Merged

build(win): cross-platform build script + windows-latest probe CI (#43) → 1.28.2#111
sandstream merged 3 commits into
mainfrom
fix/win-build-script

Conversation

@sandstream

Copy link
Copy Markdown
Owner

Incremental #43 (native Windows), the verify-driven way.

  • Portable build script. build/build:prod used POSIX rm -rf dist + chmod +x dist/cli.js — both fail on native Windows. Now rimraf (already a dep) + scripts/chmod-cli.mjs (no-ops on win32). Same POSIX output (verified: dist/cli.js stays 0755). kit can now build on Windows.
  • windows-latest probe CI. Non-required workflow (workflow_dispatch + windows-ci/** branches — NOT on every PR, no noise) that builds + unit-tests on a real Windows runner and smoke-runs kit check (non-blocking). This surfaces the remaining Native Windows support (PowerShell/cmd) — tracking #43 blockers (POSIX git hooks, tar, secret-file ACLs) against a genuine Windows env instead of guessing on macOS. Actions SHA-pinned (passes kit gha-audit; my workflow is absent from the unpinned list).

After merge I'll trigger the probe to capture the real Windows failures and iterate.

🤖 Generated with Claude Code

sandstream and others added 3 commits June 24, 2026 10:58
build/build:prod used POSIX rm -rf + chmod +x (fail on native Windows). Now
rimraf (already a dep) + scripts/chmod-cli.mjs (no-op on win32) — same POSIX
output (dist/cli.js stays 0755, verified). Adds a non-required windows-latest
probe workflow (manual + windows-ci/** branches, SHA-pinned actions) so the
remaining #43 blockers surface against a real Windows runner.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
rimraf is only a transitive dep — no node_modules/.bin/rimraf in a clean npm ci,
so the bare `rimraf dist` broke the build in CI. Replace with scripts/clean-dist.mjs
(node built-in fs.rmSync), fully self-contained + cross-platform.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ist/chmod-cli are present

npm run build now runs node scripts/clean-dist.mjs + chmod-cli.mjs; the image
must include scripts/ or the in-container build fails.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit c44ec8f into main Jun 24, 2026
16 checks passed
@sandstream
sandstream deleted the fix/win-build-script branch June 24, 2026 14:34
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