mirror of
https://github.com/actions/setup-go.git
synced 2026-03-07 07:37:36 +08:00
Compare commits
1 Commits
0f4f3b3e4c
...
v5.3.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f111f3307d |
@@ -17,4 +17,4 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Publish
|
- name: Publish
|
||||||
id: publish
|
id: publish
|
||||||
uses: actions/publish-immutable-action@0.0.3
|
uses: actions/publish-immutable-action@v0.0.4
|
||||||
|
|||||||
13
dist/setup/index.js
vendored
13
dist/setup/index.js
vendored
@@ -97332,18 +97332,13 @@ 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 'ppc64':
|
// case 'ppc':
|
||||||
if (endianness == 'LE') {
|
// arch = 'ppc64';
|
||||||
arch = 'ppc64le';
|
// break;
|
||||||
} else {
|
|
||||||
arch = 'ppc64';
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'x32':
|
case 'x32':
|
||||||
arch = '386';
|
arch = '386';
|
||||||
break;
|
break;
|
||||||
@@ -99325,4 +99320,4 @@ const main_1 = __nccwpck_require__(399);
|
|||||||
|
|
||||||
module.exports = __webpack_exports__;
|
module.exports = __webpack_exports__;
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
@@ -20,18 +20,13 @@ 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 'ppc64':
|
// case 'ppc':
|
||||||
if (endianness == 'LE') {
|
// arch = 'ppc64';
|
||||||
arch = 'ppc64le';
|
// break;
|
||||||
} else {
|
|
||||||
arch = 'ppc64';
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'x32':
|
case 'x32':
|
||||||
arch = '386';
|
arch = '386';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user