diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cb498c85..af0f7c8b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,9 +36,18 @@ jobs: - 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 + # Platform packages have os/cpu fields that block install on foreign platforms. + # Download and extract tarballs directly to bypass platform checks. + OPENTUI_VERSION="0.1.79" + for platform in darwin-x64 darwin-arm64 linux-arm64 win32-x64 win32-arm64; do + pkg="@opentui/core-${platform}" + dest="node_modules/@opentui/core-${platform}" + if [ ! -d "$dest" ]; then + mkdir -p "$dest" + npm pack "${pkg}@${OPENTUI_VERSION}" --pack-destination /tmp 2>/dev/null + tar -xzf "/tmp/opentui-core-${platform}-${OPENTUI_VERSION}.tgz" -C "$dest" --strip-components=1 + fi + done # TODO: Re-enable after fixing failing tests # - name: Run tests