Skip to content

Commit

Permalink
Parse the output of uname to determine the architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilmkd committed May 29, 2021
1 parent 05b368d commit 474061e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 474061e

Please sign in to comment.