Skip to content

Commit 7d282c9

Browse files
committed
Add jruby-10.0.5.0 to CI matrix with Oracle JDK 21
Add jruby-10.0.5.0 to the `test` workflow matrix so the Oracle JDBC code path is exercised on every push. JRuby 10 targets Java 21 bytecode (class file version 65) and Oracle's ojdbc17.jar is certified with JDK 17 and JDK 21, so install Oracle JDK 21 explicitly via actions/setup-java for both the `test` workflow (scoped to JRuby matrix entries via `if: startsWith(matrix.ruby, 'jruby')`) and the `jruby_head` workflow. Picking Oracle JDK matches the distribution most users run in production alongside the Oracle JDBC driver, and Oracle JDK 21 is available at no cost under the NFTC license.
1 parent 11b3a30 commit 7d282c9

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/jruby_head.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
4040
steps:
4141
- uses: actions/checkout@v6
42+
- name: Set up Java
43+
uses: actions/setup-java@v4
44+
with:
45+
distribution: oracle
46+
java-version: '21'
4247
- name: Set up Ruby
4348
uses: ruby/setup-ruby@v1
4449
with:

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
'4.0',
1616
'3.4',
1717
'3.3',
18-
'3.2'
18+
'3.2',
19+
'jruby-10.0.5.0',
1920
]
2021
env:
2122
ORACLE_HOME: /opt/oracle/instantclient_23_26
@@ -42,6 +43,12 @@ jobs:
4243
4344
steps:
4445
- uses: actions/checkout@v6
46+
- name: Set up Java
47+
if: startsWith(matrix.ruby, 'jruby')
48+
uses: actions/setup-java@v4
49+
with:
50+
distribution: oracle
51+
java-version: '21'
4552
- name: Set up Ruby
4653
uses: ruby/setup-ruby@v1
4754
with:

0 commit comments

Comments
 (0)