mirror of
https://github.com/actions/setup-go.git
synced 2025-06-28 07:53:43 +00:00
Merge f89ad3b87c
into fa96338abe
This commit is contained in:
commit
86d7aff7e7
3 changed files with 39 additions and 8 deletions
16
dist/setup/index.js
vendored
16
dist/setup/index.js
vendored
|
@ -93828,15 +93828,23 @@ function getPlatform() {
|
|||
exports.getPlatform = getPlatform;
|
||||
function getArch(arch) {
|
||||
// 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64'.
|
||||
// wants amd64, 386, arm64, armv61, ppc641e, s390x
|
||||
// wants amd64, 386, arm64, armv6l, ppc64le, s390x
|
||||
// currently not supported by runner but future proofed mapping
|
||||
switch (arch) {
|
||||
case 'x64':
|
||||
arch = 'amd64';
|
||||
break;
|
||||
// case 'ppc':
|
||||
// arch = 'ppc64';
|
||||
// break;
|
||||
// In case of ppc64, further distinction is needed to determine the endianness
|
||||
// of the host as it can either be ppc64(Big Endian) or ppc64le (Little Endian) to download
|
||||
// the correct bundle.
|
||||
case 'ppc64':
|
||||
if (os_1.default.endianness() === 'LE') {
|
||||
arch = 'ppc64le';
|
||||
}
|
||||
else {
|
||||
arch = 'ppc64';
|
||||
}
|
||||
break;
|
||||
case 'x32':
|
||||
arch = '386';
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue