Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Intel Mac CI builds. #118

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Fix Intel Mac CI builds. #118

merged 3 commits into from
Sep 5, 2024

Conversation

cfallin
Copy link
Member

@cfallin cfallin commented Sep 5, 2024

We build both x86-64 and aarch64 ("Intel Mac" and "Apple Silicon Mac") binaries for wizer in CI on the macos-latest CI runner. Historically, this runner was an x86-64 machine, so while we could do a direct compile for x86-64 binaries, we added a target override for aarch64-darwin for the aarch64 builds to force a cross-compile.

When GitHub switched macOS CI runners to aarch64 (ARM64) machines somewhat recently, the macos-latest runner image began producing aarch64 binaries by default, and the target override for cross-compilation became meaningless (redundant). As a result, both of our x86-64 and aarch64 macOS binary artifacts contained aarch64 binaries. This is a problem for anyone running an Intel Mac.

This PR switches the CI config to specify a cross-compilation of x86-64 binaries, so each target builds its proper architecture.

@cfallin cfallin requested a review from guybedford September 5, 2024 20:21
.github/workflows/ci.yml Show resolved Hide resolved
We build both x86-64 and aarch64 ("Intel Mac" and "Apple Silicon Mac")
binaries for wizer in CI on the `macos-latest` CI runner. Historically,
this runner was an x86-64 machine, so while we could do a direct compile
for x86-64 binaries, we added a target override for `aarch64-darwin` for
the aarch64 builds to force a cross-compile.

When GitHub switched macOS CI runners to aarch64 (ARM64) machines
somewhat recently, the `macos-latest` runner image began producing
aarch64 binaries by default, and the target override for
cross-compilation became meaningless (redundant). As a result, *both* of
our x86-64 and aarch64 macOS binary artifacts contained aarch64
binaries. This is a problem for anyone running an Intel Mac.

This PR switches the CI config to specify a cross-compilation of x86-64
binaries, so each target builds its proper architecture.
@cfallin cfallin force-pushed the cfallin/fix-intel-macos-ci branch from 8aa70b2 to c991cca Compare September 5, 2024 20:52
@cfallin cfallin force-pushed the cfallin/fix-intel-macos-ci branch from 9101ca8 to 82f0bea Compare September 5, 2024 21:15
@guybedford guybedford merged commit 93c6d2d into main Sep 5, 2024
17 checks passed
@guybedford guybedford deleted the cfallin/fix-intel-macos-ci branch September 5, 2024 21:23
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.

2 participants