Skip to content

Commit 06fc6a9

Browse files
authored
Parse the output of uname to determine the architecture (#39)
1 parent 05b368d commit 06fc6a9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/install.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ function jabbaUrlSuffix(): string {
1919
const runnerOs = shell.env["RUNNER_OS"] || "undefined";
2020
switch (runnerOs.toLowerCase()) {
2121
case "linux":
22-
return "linux-amd64";
22+
const arch = shell.exec("uname -m", { silent: true }).stdout;
23+
switch (arch) {
24+
case "arm64":
25+
case "aarch64":
26+
return "linux-arm64";
27+
28+
default:
29+
return "linux-amd64";
30+
}
2331
case "macos":
2432
return "darwin-amd64";
2533
case "windows":

0 commit comments

Comments
 (0)