This commit is contained in:
Shahid 2025-04-15 10:44:42 +00:00 committed by GitHub
commit bcff3e4bd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 7 deletions

13
dist/setup/index.js vendored
View File

@ -93833,13 +93833,18 @@ function getArch(arch) {
// 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64'. // 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64'.
// wants amd64, 386, arm64, armv61, ppc641e, s390x // wants amd64, 386, arm64, armv61, ppc641e, s390x
// currently not supported by runner but future proofed mapping // currently not supported by runner but future proofed mapping
let endianness = os_1.default.endianness();
switch (arch) { switch (arch) {
case 'x64': case 'x64':
arch = 'amd64'; arch = 'amd64';
break; break;
// case 'ppc': case 'ppc64':
// arch = 'ppc64'; if (endianness == 'LE') {
// break; arch = 'ppc64le';
} else {
arch = 'ppc64';
}
break;
case 'x32': case 'x32':
arch = '386'; arch = '386';
break; break;
@ -95838,4 +95843,4 @@ const main_1 = __nccwpck_require__(399);
module.exports = __webpack_exports__; module.exports = __webpack_exports__;
/******/ })() /******/ })()
; ;

View File

@ -20,13 +20,18 @@ export function getArch(arch: string): string {
// wants amd64, 386, arm64, armv61, ppc641e, s390x // wants amd64, 386, arm64, armv61, ppc641e, s390x
// currently not supported by runner but future proofed mapping // currently not supported by runner but future proofed mapping
let endianness: string = os.endianness();
switch (arch) { switch (arch) {
case 'x64': case 'x64':
arch = 'amd64'; arch = 'amd64';
break; break;
// case 'ppc': case 'ppc64':
// arch = 'ppc64'; if (endianness == 'LE') {
// break; arch = 'ppc64le';
} else {
arch = 'ppc64';
}
break;
case 'x32': case 'x32':
arch = '386'; arch = '386';
break; break;