Skip to content

Commit bb8d247

Browse files
authored
feat: support s390x and powerpc (#289)
This patch adds support for `s390x` and `powerpc`. According https://github.com/nodejs/node/blob/main/BUILDING.md#platform-list , only `powerpcle` available on Linux. So we always use `uv-powerpc64le-unknown-linux-gnu`
1 parent 1ffa6dc commit bb8d247

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

dist/save-cache/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/platforms.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@ export type Platform =
44
| "unknown-linux-musleabihf"
55
| "apple-darwin"
66
| "pc-windows-msvc";
7-
export type Architecture = "i686" | "x86_64" | "aarch64";
7+
export type Architecture =
8+
| "i686"
9+
| "x86_64"
10+
| "aarch64"
11+
| "s390x"
12+
| "powerpc64le";
813

914
export function getArch(): Architecture | undefined {
1015
const arch = process.arch;
1116
const archMapping: { [key: string]: Architecture } = {
1217
ia32: "i686",
1318
x64: "x86_64",
1419
arm64: "aarch64",
20+
s390x: "s390x",
21+
ppc64: "powerpc64le",
1522
};
1623

1724
if (arch in archMapping) {

0 commit comments

Comments
 (0)