-
Notifications
You must be signed in to change notification settings - Fork 26
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
Take into account architecture when selecting linux artifact #59
Take into account architecture when selecting linux artifact #59
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for the contribution and also for writing a test 👍
#[cfg(all(target_os = "linux", target_arch = "x86_64"))] | ||
static PLATFORM_KEYWORDS: &[&str] = &["linux-x86_64", "linux"]; | ||
|
||
#[cfg(all(target_os = "linux", target_arch = "aarch64"))] | ||
static PLATFORM_KEYWORDS: &[&str] = &["linux-arm64", "linux-aarch64", "linux"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will drop support for 32bit arch on linux, maybe it's preferable to add a gated declaration for those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I have read the CLA Document and I hereby sign the CLA |
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. |
StyLua recently started producing
linux-aarch64
builds. Foreman does not correctly take into account the architecture on linux, and selects thelinux-aarch64
build whenlinux-x86_64
should be used. This causes GitHub Actions CI to fail.We fix this by preferring a more explicit name in platform keywords for linux (depending on arch), and falling back to the generic one if nothing is found