mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-15 11:07:14 +00:00
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`
This commit is contained in:
2
dist/save-cache/index.js
generated
vendored
2
dist/save-cache/index.js
generated
vendored
@@ -91860,6 +91860,8 @@ function getArch() {
|
||||
ia32: "i686",
|
||||
x64: "x86_64",
|
||||
arm64: "aarch64",
|
||||
s390x: "s390x",
|
||||
ppc64: "powerpc64le",
|
||||
};
|
||||
if (arch in archMapping) {
|
||||
return archMapping[arch];
|
||||
|
||||
2
dist/setup/index.js
generated
vendored
2
dist/setup/index.js
generated
vendored
@@ -95648,6 +95648,8 @@ function getArch() {
|
||||
ia32: "i686",
|
||||
x64: "x86_64",
|
||||
arm64: "aarch64",
|
||||
s390x: "s390x",
|
||||
ppc64: "powerpc64le",
|
||||
};
|
||||
if (arch in archMapping) {
|
||||
return archMapping[arch];
|
||||
|
||||
@@ -4,7 +4,12 @@ export type Platform =
|
||||
| "unknown-linux-musleabihf"
|
||||
| "apple-darwin"
|
||||
| "pc-windows-msvc";
|
||||
export type Architecture = "i686" | "x86_64" | "aarch64";
|
||||
export type Architecture =
|
||||
| "i686"
|
||||
| "x86_64"
|
||||
| "aarch64"
|
||||
| "s390x"
|
||||
| "powerpc64le";
|
||||
|
||||
export function getArch(): Architecture | undefined {
|
||||
const arch = process.arch;
|
||||
@@ -12,6 +17,8 @@ export function getArch(): Architecture | undefined {
|
||||
ia32: "i686",
|
||||
x64: "x86_64",
|
||||
arm64: "aarch64",
|
||||
s390x: "s390x",
|
||||
ppc64: "powerpc64le",
|
||||
};
|
||||
|
||||
if (arch in archMapping) {
|
||||
|
||||
Reference in New Issue
Block a user