Clarify Windows check

This commit is contained in:
Benoit Daloze
2020-11-10 11:35:50 +01:00
parent 0592d01dc3
commit 339f055c86
2 changed files with 2 additions and 2 deletions
Generated Vendored
+1 -1
View File
@@ -51181,7 +51181,7 @@ async function setupRuby(options = {}) {
const [engine, parsedVersion] = parseRubyEngineAndVersion(inputs['ruby-version'])
let installer
if (platform === 'windows-latest' && engine === 'ruby') {
if (platform.startsWith('windows-') && engine === 'ruby') {
installer = __webpack_require__(216)
} else {
installer = __webpack_require__(974)
+1 -1
View File
@@ -39,7 +39,7 @@ export async function setupRuby(options = {}) {
const [engine, parsedVersion] = parseRubyEngineAndVersion(inputs['ruby-version'])
let installer
if (platform === 'windows-latest' && engine === 'ruby') {
if (platform.startsWith('windows-') && engine === 'ruby') {
installer = require('./windows')
} else {
installer = require('./ruby-builder')