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:
Ludovic Henry
2026-03-10 15:38:42 +01:00
committed by GitHub
parent 0acf9708ce
commit 9f332a133a
3 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ export type Architecture =
| "x86_64"
| "aarch64"
| "s390x"
| "riscv64gc"
| "powerpc64le";
export function getArch(): Architecture | undefined {
@@ -21,6 +22,7 @@ export function getArch(): Architecture | undefined {
arm64: "aarch64",
ia32: "i686",
ppc64: "powerpc64le",
riscv64: "riscv64gc",
s390x: "s390x",
x64: "x86_64",
};