fix(ci): force-install cross-platform opentui native bindings#194
fix(ci): force-install cross-platform opentui native bindings#194lavaman131 merged 1 commit intomainfrom
Conversation
Platform packages have os/cpu fields that cause both bun and npm to skip them on incompatible platforms. Use npm pack + tar to download and extract tarballs directly into node_modules, bypassing platform checks for cross-compilation.
PR Review: fix(ci): force-install cross-platform opentui native bindingsSummaryThis PR changes the approach for installing cross-platform native bindings in the CI publish workflow. Instead of using ✅ What Works Well
|
Summary
Fixes cross-platform compilation in the publish workflow by bypassing npm's platform filtering for OpenTUI native bindings. The previous approach using
bun add --optionalfailed because platform-specific packages haveos/cpufields that prevent installation on foreign platforms.Changes
bun add --optionalwith a custom installation script usingnpm pack+tardarwin-x64,darwin-arm64,linux-arm64,win32-x64,win32-arm64)node_modules/@opentui/core-*, bypassing platform checksbun build --compilecross-compilation for all target platforms from a single x64 Linux runnerTechnical Details
The workflow now:
npm packto download package tarballs without triggering platform compatibility checksnode_modulesdirectory0.1.79) for reproducible buildsTest Plan
atomic-linux-x64atomic-linux-arm64atomic-darwin-x64atomic-darwin-arm64atomic-windows-x64.exe