Skip to content

Commit 3babe98

Browse files
committedMar 27, 2024·
npm run build
1 parent d688f28 commit 3babe98

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎dist/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ function run() {
172172
: os.platform() === "win32"
173173
? "win"
174174
: "linux";
175-
yield installer.getRaku(version, platform, "x86_64");
175+
const arch = os.arch() === "arm64" ? "arm64" : "x86_64";
176+
yield installer.getRaku(version, platform, arch);
176177
core.startGroup("raku -V");
177178
yield exec.exec("raku", ["-V"]);
178179
core.endGroup();

‎lib/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ function run() {
4646
: os.platform() === "win32"
4747
? "win"
4848
: "linux";
49-
yield installer.getRaku(version, platform, "x86_64");
49+
const arch = os.arch() === "arm64" ? "arm64" : "x86_64";
50+
yield installer.getRaku(version, platform, arch);
5051
core.startGroup("raku -V");
5152
yield exec.exec("raku", ["-V"]);
5253
core.endGroup();

0 commit comments

Comments
 (0)
Please sign in to comment.