mirror of
https://github.com/mozilla-actions/sccache-action
synced 2026-09-07 20:04:02 +00:00
Add arm support (#159)
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+7
-1
@@ -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':
|
||||
return 'unknown-linux-musl';
|
||||
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