diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67fb6cf0..74827016 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -129,8 +129,8 @@ jobs: strategy: fail-fast: false matrix: - include: - - { os: windows-2019, jruby-version: 9.4.4.0 } + os: [ windows-2019 ] + jruby-version: [ 9.4.4.0 ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/build.rb b/build.rb index f65a2914..f7aa3136 100644 --- a/build.rb +++ b/build.rb @@ -21,8 +21,7 @@ def sh(*command) unix.sub!(/ruby: .+/, "ruby: [#{versions.join(', ')}]") if jruby - raise "More than 1 version not supported for JRuby" unless versions.size == 1 - windows.sub!(/jruby-version: .+/, "jruby-version: #{versions.first.delete_prefix('jruby-')} }") + windows.sub!(/jruby-version: .+/, "jruby-version: [#{versions.map { |v| v.delete_prefix('jruby-') }.join(', ')}]") end if_lines = lines.select { |line| line.match?(/^ if: (true|false)/) }