feat(ext/node): add riscv64 in process.arch (#23016)

Rust triple for riscv64 is riscv64gc. Although there are no official
builds for architectures other than x86_64 and aarch64, Arch Linux
RISC-V has managed to package Deno on riscv64:
https://github.com/felixonmars/archriscv-packages/blob/master/deno/riscv64.patch

Ref: https://github.com/denoland/deno/issues/18702
This commit is contained in:
Eric Long 2024-03-21 21:36:42 +08:00 committed by GitHub
parent b428989bc5
commit 976fa489fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,8 @@ export function arch(): string {
return "x64";
} else if (core.build.arch == "aarch64") {
return "arm64";
} else if (core.build.arch == "riscv64gc") {
return "riscv64";
} else {
throw Error("unreachable");
}