From e78ece9a2a2ae870b1f940f7abd335cfe159f629 Mon Sep 17 00:00:00 2001 From: Alexei Lozovsky Date: Sat, 29 May 2021 22:43:24 +0900 Subject: [PATCH] Add "x86_64" and "x86-64" aliases for "x64" (#44) By a popular request... --- README.md | 2 +- index.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a68b89e..d3f9486 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ jobs: - `arch` – target architecture - native compilation: - - `x64` (default) or its synonyms: `amd64`, `win64` + - `x64` (default) or its synonyms: `amd64`, `win64`, `x86_64` - `x86` or its synonyms: `win32` - cross-compilation: `x86_amd64`, `x86_arm`, `x86_arm64`, `amd64_x86`, `amd64_arm`, `amd64_arm64` - `sdk` – Windows SDK to use diff --git a/index.js b/index.js index a5f9bd8..f4fbd73 100644 --- a/index.js +++ b/index.js @@ -90,6 +90,8 @@ function main() { let arch_aliases = { "win32": "x86", "win64": "x64", + "x86_64": "x64", + "x86-64": "x64", } // Ignore case when matching as that's what humans expect. if (arch.toLowerCase() in arch_aliases) {