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

#nojira need to distinguish between arm64 mac vs x86_64 mac #31

Merged
merged 5 commits into from
Aug 2, 2022

Conversation

yxia-rblx
Copy link
Contributor

@yxia-rblx yxia-rblx commented Jul 28, 2022

setup-foreman fails to run on legacy Mac as it was trying to download and run arm64 binary onto x64 machines

@github-actions
Copy link

github-actions bot commented Jul 28, 2022

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

rojo = { source = "Roblox/rojo", version = "0.6.0-alpha.1" }
selene = { source = "Kampfkarren/selene", version = "0.15.0" }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if I don't have this here, the test with working directory fails: https://github.com/Roblox/setup-foreman/runs/7569087575?check_suite_focus=true#step:8:21

@amatosov-rbx is that the expected behavior?

@yxia-rblx
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@ZoteTheMighty ZoteTheMighty left a comment

Choose a reason for hiding this comment

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

Looks like it should be okay, but I think it needs a bit more backwards compatibility

platformMatcher = name => name.includes("macos-x86_64");
} else {
platformMatcher = name => name.includes("macos-arm64");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We may still need some sort of fallback here since there are older projects with just a macos asset. I presume that would likely be only x86_64 ones anyway, so maybe the x64 case needs to include a || name.includes("macos") or something?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh wait, this is only for foreman itself, huh. I wonder if we can retroactively fix up the asset names?

@yxia-rblx yxia-rblx merged commit 9ca8d65 into master Aug 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2022
@cliffchapmanrbx cliffchapmanrbx deleted the fix-macos-arm64-vs-x86_64 branch December 16, 2023 01:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants