Repository navigation
ci(desktop): move x86_64-apple builds off the retired macos-13 image - #226
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #222 — both
x86_64-apple-darwinjobs pinned the retiredmacos-13Intel 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 onmacos-14with an x86_64 Python under Rosetta 2:setup-pythonwitharchitecture: x64installs an Intel interpreter (GitHub's hosted ARM runners ship Rosetta), pip then resolves x86_64 wheels, and PyInstaller emits a genuinex86_64-apple-darwinbinary. Every matrix entry now pinspython-archexplicitly.build-tauri: plain runner swap — the job already installsmatrix.targetin the toolchain and passes--targetto tauri-action, and Rust cross-compilesx86_64-apple-darwinon 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