Skip to content

Commit 6e488c4

Browse files
committed
Parse the output of uname to determine the architecture
1 parent 05b368d commit 6e488c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/install.ts

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

0 commit comments

Comments
 (0)