From 9f332a133a60f39d23361d5262fa95793aa02590 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Tue, 10 Mar 2026 15:38:42 +0100 Subject: [PATCH] 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). --- dist/save-cache/index.js | 1 + dist/setup/index.js | 1 + src/utils/platforms.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/dist/save-cache/index.js b/dist/save-cache/index.js index d1c53b2..390c1ee 100644 --- a/dist/save-cache/index.js +++ b/dist/save-cache/index.js @@ -91307,6 +91307,7 @@ function getArch() { arm64: "aarch64", ia32: "i686", ppc64: "powerpc64le", + riscv64: "riscv64gc", s390x: "s390x", x64: "x86_64", }; diff --git a/dist/setup/index.js b/dist/setup/index.js index cb5e263..04a32d5 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -97230,6 +97230,7 @@ function getArch() { arm64: "aarch64", ia32: "i686", ppc64: "powerpc64le", + riscv64: "riscv64gc", s390x: "s390x", x64: "x86_64", }; diff --git a/src/utils/platforms.ts b/src/utils/platforms.ts index bf044ca..130479f 100644 --- a/src/utils/platforms.ts +++ b/src/utils/platforms.ts @@ -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", };