From 3e32cbb449d61a06a9563236546754fbdf9be9c6 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Mon, 24 Nov 2025 09:51:35 -0800 Subject: [PATCH] Add JDK 25 to CI test matrix (#703) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update CI to test on JDK 25 (LTS) and remove JDK 24 (non-LTS). Changes: - Replace JDK 24 with JDK 25 in test matrix - Add --enable-native-access=ALL-UNNAMED flag for JDK 24+ tests - This ensures native library loading works correctly per JEP 472 The CI now tests on: JDK 8, 11, 17, 21, 25 (all LTS versions plus latest) Related to #689 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b33341c..f60b3f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: test-jdk: strategy: matrix: - version: [ '8', '11', '17', '21', '24' ] + version: [ '8', '11', '17', '21', '25' ] name: test jdk${{ matrix.version }} needs: changes if: ${{ needs.changes.outputs.code == 'true' }} @@ -58,4 +58,8 @@ jobs: key: ${{ runner.os }}-jdk${{ matrix.version }}-${{ hashFiles('**/*.sbt') }} restore-keys: ${{ runner.os }}-jdk${{ matrix.version }}- - name: Test - run: ./sbt test + run: | + if [ "${{ matrix.version }}" -ge "24" ]; then + export _JAVA_OPTIONS="--enable-native-access=ALL-UNNAMED" + fi + ./sbt test