From 56bd43c3c37f7dad6fc27ae11c32d4577669e565 Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 12 Feb 2026 00:02:32 +0000 Subject: [PATCH] fix(ci): install all platform opentui bindings for cross-compilation bun build --compile cross-compiles for each target platform, which resolves the dynamic import @opentui/core-${platform}-${arch} at build time. Install all platform-specific packages so the bundler can resolve them for every target. --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e716a1a..cb498c85 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,6 +34,12 @@ jobs: - name: Install dependencies run: bun ci + - name: Install all platform-specific opentui native bindings + run: | + bun add --optional @opentui/core-darwin-x64@0.1.79 @opentui/core-darwin-arm64@0.1.79 \ + @opentui/core-linux-x64@0.1.79 @opentui/core-linux-arm64@0.1.79 \ + @opentui/core-win32-x64@0.1.79 @opentui/core-win32-arm64@0.1.79 + # TODO: Re-enable after fixing failing tests # - name: Run tests # run: bun test