Skip to content

Commit

Permalink
Add ppc64le support
Browse files Browse the repository at this point in the history
  • Loading branch information
shahidhs-ibm committed Oct 19, 2023
1 parent bfd2fb3 commit c12ce02
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
14 changes: 10 additions & 4 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61948,13 +61948,19 @@ 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;
Expand Down Expand Up @@ -62213,4 +62219,4 @@ main_1.run();

module.exports = __webpack_exports__;
/******/ })()
;
;
12 changes: 9 additions & 3 deletions src/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ 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;
Expand Down

0 comments on commit c12ce02

Please sign in to comment.