Skip to content

Commit d15e308

Browse files
jbaizaeregon
authored andcommitted
Support building multiple JRuby versions at once
1 parent 885f65d commit d15e308

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ jobs:
129129
strategy:
130130
fail-fast: false
131131
matrix:
132-
include:
133-
- { os: windows-2019, jruby-version: 9.4.4.0 }
132+
os: [ windows-2019 ]
133+
jruby-version: [ 9.4.4.0 ]
134134
runs-on: ${{ matrix.os }}
135135
steps:
136136
- uses: actions/checkout@v4

build.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ def sh(*command)
2121

2222
unix.sub!(/ruby: .+/, "ruby: [#{versions.join(', ')}]")
2323
if jruby
24-
raise "More than 1 version not supported for JRuby" unless versions.size == 1
25-
windows.sub!(/jruby-version: .+/, "jruby-version: #{versions.first.delete_prefix('jruby-')} }")
24+
windows.sub!(/jruby-version: .+/, "jruby-version: [#{versions.map { |v| v.delete_prefix('jruby-') }.join(', ')}]")
2625
end
2726

2827
if_lines = lines.select { |line| line.match?(/^ if: (true|false)/) }

0 commit comments

Comments
 (0)