Skip to content

ci(desktop): move x86_64-apple builds off the retired macos-13 image - #226

Merged
robcohen merged 2 commits into
mainfrom
fix/macos13-runner
Jul 2, 2026
Merged

robcohen merged 2 commits into
mainfrom
fix/macos13-runner

Conversation

@robcohen

@robcohen robcohen commented Jul 2, 2026

Copy link
Copy Markdown
Member

Closes #222 — both x86_64-apple-darwin jobs pinned the retired macos-13 Intel image and queued forever.

Approach (two different fixes, matching each job's constraint)

  • build-sidecar: PyInstaller genuinely cannot cross-compile — it emits a binary for the arch of the Python running it (the original reason for the Intel runner, rustfava_1.30.13_x64.dmg contains rustfava-server binary compiled for arm64 #193). The x64 sidecar now builds on macos-14 with an x86_64 Python under Rosetta 2: setup-python with architecture: x64 installs an Intel interpreter (GitHub's hosted ARM runners ship Rosetta), pip then resolves x86_64 wheels, and PyInstaller emits a genuine x86_64-apple-darwin binary. Every matrix entry now pins python-arch explicitly.
  • build-tauri: plain runner swap — the job already installs matrix.target in the toolchain and passes --target to tauri-action, and Rust cross-compiles x86_64-apple-darwin on Apple Silicon natively. Smoke-launching the x64 output works under Rosetta.

Validation

This workflow runs on PRs, so this PR's own build-sidecar (macos-14, x86_64-apple-darwin) check is the live validation — it should actually run (not queue) and produce the x64 sidecar. The full end-to-end proof is the next tagged desktop release.

🤖 Generated with Claude Code

robcohen added 2 commits July 2, 2026 15:45
Closes #222. GitHub retired the Intel macos-13 runner image, so both
x86_64-apple-darwin jobs queued forever instead of running.

- build-sidecar: PyInstaller cannot cross-compile (it emits a binary for the
  arch of the Python running it), so the x64 sidecar now builds on macos-14
  with an x86_64 Python under Rosetta 2: setup-python `architecture: x64`
  installs an Intel interpreter (hosted ARM runners ship Rosetta), pip
  resolves x86_64 wheels, and PyInstaller emits a genuine x86_64 binary.
  Every matrix entry now pins python-arch explicitly.
- build-tauri: plain runner swap to macos-14 — the job already installs
  matrix.target in the Rust toolchain and passes --target to tauri-action,
  and Rust cross-compiles x86_64-apple-darwin on Apple Silicon natively;
  smoke-launching the x64 output works under Rosetta.

The workflow runs on PRs, so this PR's own build-sidecar
(x86_64-apple-darwin) job is the live validation.
The arch-verify step caught the first attempt: setup-python's macOS 'x64'
build is universal2, so launched plainly on an ARM runner it ran as arm64 and
PyInstaller emitted an arm64 sidecar. Prefix every Python invocation in the
x64 matrix entry with 'arch -x86_64' (and use 'python -m pip'/'-m PyInstaller'
so the prefix governs the actual interpreter): pip then resolves x86_64
wheels and PyInstaller emits a genuine Intel binary.
@robcohen
robcohen merged commit f59c779 into main Jul 2, 2026
28 of 29 checks passed
@robcohen
robcohen deleted the fix/macos13-runner branch July 2, 2026 16:03
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.

build-sidecar x86_64-apple-darwin queues forever: macos-13 runner image is retired

1 participant