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 macos arm64 build #284

Merged
merged 1 commit into from
Jul 25, 2023
Merged

fix macos arm64 build #284

merged 1 commit into from
Jul 25, 2023

Conversation

rajveermalviya
Copy link
Collaborator

@rajveermalviya rajveermalviya commented Jul 24, 2023

Context

Currently macos arm64 fails to set the correct MACOSX_DEPLOYMENT_TARGET:
https://github.com/gfx-rs/wgpu-native/actions/runs/5643538134/job/15285583834#step:6:1

  • remove SDKROOT: I am guessing it was needed before because building for Apple Silicon required beta xcode, which is not necessary anymore (I looked at rust-analyzer's release action).
  • for macos arm64 build set MACOSX_DEPLOYMENT_TARGET to 11.0 (first release to support Apple Silicon)
  • don't set the xcode version manually, use whatever's default from the runner-image.

Testing

resulting builds not tested, action was tested in my fork.

also don't set the xcode version manually,
use default version from the runner-image.
Copy link
Collaborator

@almarklein almarklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot extensively test this, since wgpu-py is waay behind, but the lib does load and can report its version.

@rajveermalviya rajveermalviya merged commit dd9845c into gfx-rs:trunk Jul 25, 2023
15 checks passed
@rajveermalviya
Copy link
Collaborator Author

forgot to tag the release, tagged now

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