Skip to content

Commit

Permalink
Add arm support (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdygert-spok authored Nov 27, 2024
1 parent 1f3e714 commit c83ccfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/setup/index.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ function getArch(): Error | string {
return 'x86_64';
case 'arm64':
return 'aarch64';
case 'arm':
return 'armv7';
default:
return Error(`Unsupported arch "${process.arch}"`);
}
Expand All @@ -141,7 +143,11 @@ function getPlatform(): Error | string {
case 'win32':
return 'pc-windows-msvc';
case 'linux':
return 'unknown-linux-musl';
if (process.arch == 'arm') {
return 'unknown-linux-musleabi';
} else {
return 'unknown-linux-musl';
}
default:
return Error(`Unsupported platform "${process.platform}"`);
}
Expand Down

0 comments on commit c83ccfe

Please sign in to comment.