Skip to content

Commit

Permalink
Support building multiple JRuby versions at once
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaiza authored and eregon committed Nov 7, 2023
1 parent 885f65d commit d15e308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)/) }
Expand Down

0 comments on commit d15e308

Please sign in to comment.