Skip to content

fix(ci): add baseline CPU variant binaries for legacy hardware support#2148

Merged
code-yeongyu merged 1 commit intodevfrom
fix/issue-2121-legacy-hardware-baseline
Feb 26, 2026
Merged

fix(ci): add baseline CPU variant binaries for legacy hardware support#2148
code-yeongyu merged 1 commit intodevfrom
fix/issue-2121-legacy-hardware-baseline

Conversation

@code-yeongyu
Copy link
Owner

@code-yeongyu code-yeongyu commented Feb 26, 2026

Problem

Users with CPUs lacking AVX2 instructions (for example, Intel Ivy Bridge) cannot use oh-my-opencode past v3.1.3 because only AVX2-targeted binaries are published and selected.

Root Cause

publish-platform.yml published only 7 platform packages, missing baseline x64 targets for non-AVX2 CPUs. Runtime package selection also had no baseline fallback strategy.

Fix

  • Expand platform publish matrices to include baseline variants: darwin-x64-baseline, linux-x64-baseline, linux-x64-musl-baseline, windows-x64-baseline
  • Update runtime package resolution to consider baseline fallback packages and retry with baseline when the primary binary exits with SIGILL
  • Add optional baseline platform dependencies and shared type declarations for platform helper exports
  • Update postinstall binary check to validate candidate packages in fallback order

Closes #2121


Summary by cubic

Adds baseline x64 binaries and fallback logic so oh-my-opencode runs on CPUs without AVX2. Expands publishing and install checks to prefer baseline when AVX2 is missing; closes #2121.

  • New Features
    • Publish baseline variants: darwin-x64-baseline, linux-x64-baseline, linux-x64-musl-baseline, windows-x64-baseline; workflows build/publish them and package.json lists them as optionalDependencies.
    • Runtime: detect AVX2 (or OH_MY_OPENCODE_FORCE_BASELINE), resolve candidate packages in order, retry on SIGILL, and preserve correct signal exit codes.
    • Postinstall: verify candidates in order and report the resolved package with clear errors when none are installed; added getPlatformPackageCandidates and type defs.

Written for commit cc5e9d1. Summary will update on new commits.

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 8 files

Confidence score: 5/5

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

Requires human review: Increases installation size for all x64 users by downloading multiple variants, and refactors core execution logic with potential side effects during SIGILL retries.

@code-yeongyu code-yeongyu merged commit 0526bac into dev Feb 26, 2026
10 checks passed
@code-yeongyu code-yeongyu deleted the fix/issue-2121-legacy-hardware-baseline branch February 26, 2026 12:09
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]: Unable to install past v3.1.3 on legacy hardware

1 participant