mirror of
https://github.com/actions/setup-go.git
synced 2025-11-07 04:26:55 +00:00
Compare commits
3 commits
b9cfa6d604
...
c8c91f58b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8c91f58b1 | ||
|
|
599dc9e0fa | ||
|
|
c12ce02684 |
2 changed files with 17 additions and 7 deletions
13
dist/setup/index.js
vendored
13
dist/setup/index.js
vendored
|
|
@ -94965,13 +94965,18 @@ function getArch(arch) {
|
|||
// 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64'.
|
||||
// wants amd64, 386, arm64, armv61, ppc641e, s390x
|
||||
// currently not supported by runner but future proofed mapping
|
||||
let endianness = os_1.default.endianness();
|
||||
switch (arch) {
|
||||
case 'x64':
|
||||
arch = 'amd64';
|
||||
break;
|
||||
// case 'ppc':
|
||||
// arch = 'ppc64';
|
||||
// break;
|
||||
case 'ppc64':
|
||||
if (endianness == 'LE') {
|
||||
arch = 'ppc64le';
|
||||
} else {
|
||||
arch = 'ppc64';
|
||||
}
|
||||
break;
|
||||
case 'x32':
|
||||
arch = '386';
|
||||
break;
|
||||
|
|
@ -96969,4 +96974,4 @@ const main_1 = __nccwpck_require__(399);
|
|||
|
||||
module.exports = __webpack_exports__;
|
||||
/******/ })()
|
||||
;
|
||||
;
|
||||
|
|
|
|||
|
|
@ -21,13 +21,18 @@ export function getArch(arch: Architecture): string {
|
|||
|
||||
// wants amd64, 386, arm64, armv61, ppc641e, s390x
|
||||
// currently not supported by runner but future proofed mapping
|
||||
let endianness: string = os.endianness();
|
||||
switch (arch) {
|
||||
case 'x64':
|
||||
arch = 'amd64';
|
||||
break;
|
||||
// case 'ppc':
|
||||
// arch = 'ppc64';
|
||||
// break;
|
||||
case 'ppc64':
|
||||
if (endianness == 'LE') {
|
||||
arch = 'ppc64le';
|
||||
} else {
|
||||
arch = 'ppc64';
|
||||
}
|
||||
break;
|
||||
case 'x32':
|
||||
arch = '386';
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue