mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-03-13 12:05:15 +00:00
Add riscv64 architecture support to platform detection (#791)
Add `riscv64gc` as a recognized architecture in the `Architecture` type union and map Node.js's `riscv64` process.arch value to the `riscv64gc` uv platform identifier. This allows the action to correctly detect and download the appropriate uv binary on RISC-V 64-bit systems (e.g., linux/riscv64 runners).
This commit is contained in:
1
dist/save-cache/index.js
generated
vendored
1
dist/save-cache/index.js
generated
vendored
@@ -91307,6 +91307,7 @@ function getArch() {
|
|||||||
arm64: "aarch64",
|
arm64: "aarch64",
|
||||||
ia32: "i686",
|
ia32: "i686",
|
||||||
ppc64: "powerpc64le",
|
ppc64: "powerpc64le",
|
||||||
|
riscv64: "riscv64gc",
|
||||||
s390x: "s390x",
|
s390x: "s390x",
|
||||||
x64: "x86_64",
|
x64: "x86_64",
|
||||||
};
|
};
|
||||||
|
|||||||
1
dist/setup/index.js
generated
vendored
1
dist/setup/index.js
generated
vendored
@@ -97230,6 +97230,7 @@ function getArch() {
|
|||||||
arm64: "aarch64",
|
arm64: "aarch64",
|
||||||
ia32: "i686",
|
ia32: "i686",
|
||||||
ppc64: "powerpc64le",
|
ppc64: "powerpc64le",
|
||||||
|
riscv64: "riscv64gc",
|
||||||
s390x: "s390x",
|
s390x: "s390x",
|
||||||
x64: "x86_64",
|
x64: "x86_64",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export type Architecture =
|
|||||||
| "x86_64"
|
| "x86_64"
|
||||||
| "aarch64"
|
| "aarch64"
|
||||||
| "s390x"
|
| "s390x"
|
||||||
|
| "riscv64gc"
|
||||||
| "powerpc64le";
|
| "powerpc64le";
|
||||||
|
|
||||||
export function getArch(): Architecture | undefined {
|
export function getArch(): Architecture | undefined {
|
||||||
@@ -21,6 +22,7 @@ export function getArch(): Architecture | undefined {
|
|||||||
arm64: "aarch64",
|
arm64: "aarch64",
|
||||||
ia32: "i686",
|
ia32: "i686",
|
||||||
ppc64: "powerpc64le",
|
ppc64: "powerpc64le",
|
||||||
|
riscv64: "riscv64gc",
|
||||||
s390x: "s390x",
|
s390x: "s390x",
|
||||||
x64: "x86_64",
|
x64: "x86_64",
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user