mirror of
https://github.com/Mozilla-Actions/sccache-action.git
synced 2026-04-08 17:42:13 +08:00
Add arm support (#159)
This commit is contained in:
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -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}"`);
|
||||
}
|
||||
@@ -141,7 +143,11 @@ function getPlatform(): Error | string {
|
||||
case 'win32':
|
||||
return 'pc-windows-msvc';
|
||||
case 'linux':
|
||||
if (process.arch == 'arm') {
|
||||
return 'unknown-linux-musleabi';
|
||||
} else {
|
||||
return 'unknown-linux-musl';
|
||||
}
|
||||
default:
|
||||
return Error(`Unsupported platform "${process.platform}"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user