Skip to content

Conversation

@LilMGenius
Copy link

@LilMGenius LilMGenius commented Jan 20, 2026

Summary

  • Build Windows binary on windows-latest runner instead of cross-compiling from Ubuntu
  • Fixes segmentation fault when running standalone Windows executable

Fixes #873

Root Cause

Bun's cross-compilation from Linux to Windows produces binaries that crash with:

panic(main thread): Segmentation fault at address 0xFFFFFFFFFFFFFFFF

This is a known Bun issue: oven-sh/bun#18416

Evidence:

  • Cross-compiled binary (Ubuntu → Windows): crashes
  • Natively built binary (Windows → Windows): works

Changes

  • .github/workflows/publish.yml: Add build-windows-binary job on windows-latest, upload artifact, download in publish job
  • script/build-binaries.ts: Skip build if binary already exists (allows pre-built artifact to be used)

Testing

  • bun run typecheck passes
  • bun run build succeeds
  • Local Windows native build: works without segfault
  • Local Windows native build: --version outputs correctly

…fault

Bun's cross-compilation from Linux to Windows produces binaries that crash
with 'Segmentation fault at address 0xFFFFFFFFFFFFFFFF' (oven-sh/bun#18416).

Changes:
- Add build-windows-binary job on windows-latest runner
- Download Windows binary artifact in publish job before build:binaries
- Skip build in build-binaries.ts if binary already exists

Fixes code-yeongyu#873
@github-actions
Copy link
Contributor

github-actions bot commented Jan 20, 2026

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

@LilMGenius
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@LilMGenius LilMGenius force-pushed the fix/873-windows-x64-segfault branch 3 times, most recently from 7e09f77 to 187e2fa Compare January 21, 2026 02:01
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.

[Bug]: Can't install beta 8 or 9 on Windows.

1 participant