mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-08 11:38:22 +02:00
Merge 599dc9e0fa
into d35c59abb0
This commit is contained in:
commit
508a67f892
2 changed files with 17 additions and 7 deletions
11
dist/setup/index.js
vendored
11
dist/setup/index.js
vendored
|
@ -93908,13 +93908,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;
|
||||
|
|
|
@ -20,13 +20,18 @@ export function getArch(arch: string): 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…
Add table
Add a link
Reference in a new issue