mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 04:58:25 +02:00
feat: add warning message for windows arm64 fallback to x64
This commit is contained in:
parent
debe80bc4f
commit
356b959913
1 changed files with 9 additions and 0 deletions
|
@ -158,6 +158,15 @@ function isCacheEnabled(options: Input): boolean {
|
||||||
function getEffectiveArch(os: string, arch: string): string {
|
function getEffectiveArch(os: string, arch: string): string {
|
||||||
// Temporary workaround for absence of arm64 builds on Windows (#130)
|
// Temporary workaround for absence of arm64 builds on Windows (#130)
|
||||||
if (os === "win32" && arch === "arm64") {
|
if (os === "win32" && arch === "arm64") {
|
||||||
|
warning(
|
||||||
|
[
|
||||||
|
"⚠️ Bun does not provide native arm64 builds for Windows.",
|
||||||
|
"Using x64 build which will run through Microsoft's x64 emulation layer.",
|
||||||
|
"This may result in reduced performance and potential compatibility issues.",
|
||||||
|
"💡 For best performance, consider using x64 Windows runners or other platforms with native arm64 support.",
|
||||||
|
].join("\n"),
|
||||||
|
);
|
||||||
|
|
||||||
return "x64";
|
return "x64";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue