mirror of
https://github.com/actions/setup-go.git
synced 2025-06-28 07:53:43 +00:00
Add support for arm32 go arch (#253)
This commit is contained in:
parent
f279813975
commit
268d8c0ca0
7 changed files with 127 additions and 46 deletions
|
@ -15,9 +15,8 @@ export function getPlatform(): string {
|
|||
return plat;
|
||||
}
|
||||
|
||||
export function getArch(): string {
|
||||
export function getArch(arch: string): string {
|
||||
// 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64'.
|
||||
let arch: string = os.arch();
|
||||
|
||||
// wants amd64, 386, arm64, armv61, ppc641e, s390x
|
||||
// currently not supported by runner but future proofed mapping
|
||||
|
@ -31,6 +30,9 @@ export function getArch(): string {
|
|||
case 'x32':
|
||||
arch = '386';
|
||||
break;
|
||||
case 'arm':
|
||||
arch = 'armv6l';
|
||||
break;
|
||||
}
|
||||
|
||||
return arch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue