Skip to content

Commit 9f332a1

Browse files
authored
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).
1 parent 0acf970 commit 9f332a1

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎dist/save-cache/index.js‎

Lines changed: 1 addition & 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: 1 addition & 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type Architecture =
1313
| "x86_64"
1414
| "aarch64"
1515
| "s390x"
16+
| "riscv64gc"
1617
| "powerpc64le";
1718

1819
export function getArch(): Architecture | undefined {
@@ -21,6 +22,7 @@ export function getArch(): Architecture | undefined {
2122
arm64: "aarch64",
2223
ia32: "i686",
2324
ppc64: "powerpc64le",
25+
riscv64: "riscv64gc",
2426
s390x: "s390x",
2527
x64: "x86_64",
2628
};

0 commit comments

Comments
 (0)