From 356b9599134242c9f0261a44a5fb7611fac018d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Thu, 10 Jul 2025 20:28:16 +0200 Subject: [PATCH] feat: add warning message for windows arm64 fallback to x64 --- src/action.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/action.ts b/src/action.ts index 5cc9867..bf42772 100644 --- a/src/action.ts +++ b/src/action.ts @@ -158,6 +158,15 @@ function isCacheEnabled(options: Input): boolean { function getEffectiveArch(os: string, arch: string): string { // Temporary workaround for absence of arm64 builds on Windows (#130) 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"; }