mirror of
https://github.com/actions/setup-node.git
synced 2026-07-01 10:51:38 +00:00
adding support for linux-ppc64le
This commit is contained in:
parent
2a017f350d
commit
35387fe005
11
dist/setup/index.js
vendored
11
dist/setup/index.js
vendored
@ -71988,6 +71988,9 @@ class BaseDistribution {
|
||||
case 'win32':
|
||||
dataFileName = `win-${osArch}-exe`;
|
||||
break;
|
||||
case 'aix':
|
||||
dataFileName = `aix-${osArch}`;
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unexpected OS '${this.osPlat}'`);
|
||||
}
|
||||
@ -72005,9 +72008,17 @@ class BaseDistribution {
|
||||
return versions.sort(semver_1.default.rcompare);
|
||||
}
|
||||
translateArchToDistUrl(arch) {
|
||||
const endianness = os_1.default.endianness().toLowerCase();
|
||||
switch (arch) {
|
||||
case 'arm':
|
||||
return 'armv7l';
|
||||
case 'ppc64':
|
||||
switch (endianness) {
|
||||
case 'le':
|
||||
return 'ppc64le';
|
||||
default:
|
||||
return 'ppc64';
|
||||
}
|
||||
default:
|
||||
return arch;
|
||||
}
|
||||
|
||||
@ -262,6 +262,9 @@ export default abstract class BaseDistribution {
|
||||
case 'win32':
|
||||
dataFileName = `win-${osArch}-exe`;
|
||||
break;
|
||||
case 'aix':
|
||||
dataFileName = `aix-${osArch}`;
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unexpected OS '${this.osPlat}'`);
|
||||
}
|
||||
@ -285,9 +288,17 @@ export default abstract class BaseDistribution {
|
||||
}
|
||||
|
||||
protected translateArchToDistUrl(arch: string): string {
|
||||
const endianness = os.endianness().toLowerCase()
|
||||
switch (arch) {
|
||||
case 'arm':
|
||||
return 'armv7l';
|
||||
case 'ppc64':
|
||||
switch (endianness) {
|
||||
case 'le':
|
||||
return 'ppc64le';
|
||||
default:
|
||||
return 'ppc64';
|
||||
}
|
||||
default:
|
||||
return arch;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user