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

Build ARM Mac extension on M1 runners #366

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Build ARM Mac extension on M1 runners #366

merged 1 commit into from
Dec 14, 2023

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Dec 14, 2023

At some point between 2023.50.0 and 2023.52.0, something changed in the GitHub Actions runners such that both the x86 and ARM mac builds starting using Ruff's x86 wheel. This breaks the extension when using the bundled Ruff on an M-series MacBook. (In 2023.50.0 and earlier, it turns out we were using the universal wheel for the x86 build too, which is okay, though not identical to what pip does on x86 machines.)

This PR forces the build pipeline to use the M-series MacBooks for macOS builds, and then sets the arch explicitly. As such, we now use universal for the ARM extension and x86 for the x86 extension.

Screen Shot 2023-12-14 at 3 55 34 PM Screen Shot 2023-12-14 at 3 55 41 PM

@charliermarsh charliermarsh force-pushed the charlie/bump branch 4 times, most recently from af5eb6f to 1edc3cb Compare December 14, 2023 20:56
@charliermarsh charliermarsh changed the title Bump versions in GitHub workflow Build ARM Mac extension on M1 runners Dec 14, 2023
@charliermarsh charliermarsh merged commit 886d904 into main Dec 14, 2023
14 checks passed
@charliermarsh charliermarsh deleted the charlie/bump branch December 14, 2023 21:18
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