Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 11, 2023
1 parent 59d21a2 commit 7edb721
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions ruby-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,14 @@ async function downloadAndExtract(platform, engine, version, rubyPrefix) {

function getDownloadURL(platform, engine, version) {
let builderPlatform = platform
if (platform.startsWith('windows-')) {
if (platform.startsWith('windows-') && os.arch() === 'x64') {
builderPlatform = 'windows-latest'
} else if (platform.startsWith('macos-')) {
builderPlatform = 'macos-latest'
if (os.arch() === 'x64') {
builderPlatform = 'macos-latest'
} else if (os.arch() === 'arm64') {
builderPlatform = 'macos-13-arm64'
}
}

if (common.isHeadVersion(version)) {
Expand Down

0 comments on commit 7edb721

Please sign in to comment.