From 474061e8be9ec65612cbfa6b9461b9e1ca7a04f0 Mon Sep 17 00:00:00 2001 From: Vasil Vasilev Date: Sat, 29 May 2021 15:14:33 +0200 Subject: [PATCH] Parse the output of uname to determine the architecture --- src/install.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/install.ts b/src/install.ts index 236196b8..19d70d68 100644 --- a/src/install.ts +++ b/src/install.ts @@ -19,7 +19,15 @@ function jabbaUrlSuffix(): string { const runnerOs = shell.env["RUNNER_OS"] || "undefined"; switch (runnerOs.toLowerCase()) { case "linux": - return "linux-amd64"; + const arch = shell.exec("uname -m", { silent: true }).stdout; + switch (arch) { + case "arm64": + case "aarch64": + return "linux-arm64"; + + default: + return "linux-amd64"; + } case "macos": return "darwin-amd64"; case "windows":