File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 16
16
17
17
jobs :
18
18
build :
19
- name : Java ${{ matrix.java_version }}
19
+ name : JRuby ${{ matrix.jruby_version }} / Java ${{ matrix.java_version }}
20
20
runs-on : ubuntu-latest
21
21
22
22
strategy :
23
23
matrix :
24
24
java_version : [ '8', '11', '17', '21' ]
25
+ jruby_version : [ '9.3.15.0', '9.4.9.0' ]
25
26
fail-fast : false
26
27
27
28
steps :
33
34
distribution : ' temurin'
34
35
cache : maven
35
36
- name : Build with Maven
36
- run : mvn -B install --file pom.xml
37
+ run : mvn -B install --file pom.xml -Djruby.version=${{ matrix.jruby_version }}
37
38
38
39
# Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
39
40
- name : Update dependency graph
40
41
uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
41
- if : github.head_ref == 'refs/heads/master' && matrix.java_version == '8'
42
+ if : github.head_ref == 'refs/heads/master' && matrix.java_version == '8' && startsWith(matrix.jruby_version, '9.4')
Original file line number Diff line number Diff line change @@ -361,10 +361,10 @@ def newRuntime() # use the current runtime instead of creating new
361
361
set_config 'jruby.runtime.env' , 'false'
362
362
set_config 'jruby.runtime.env.rubyopt' , 'true'
363
363
364
- app_factory = app_factory_with_RUBYOPT '-W:no-deprecated '
364
+ app_factory = app_factory_with_RUBYOPT '-U '
365
365
@runtime = app_factory . newRuntime
366
366
should_eval_as_nil "ENV['HOME']"
367
- should_eval_as_eql_to "ENV['RUBYOPT']" , '-W:no-deprecated '
367
+ should_eval_as_eql_to "ENV['RUBYOPT']" , '-U '
368
368
end
369
369
370
370
it "keeps RUBYOPT by default with empty ENV (backwards compat)" do
You can’t perform that action at this time.
0 commit comments