mirror of
https://github.com/xerial/snappy-java.git
synced 2025-12-06 13:20:22 +01:00
Add JDK 25 to CI test matrix (#703)
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 <noreply@anthropic.com>
This commit is contained in:
parent
92540f3a60
commit
3e32cbb449
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -41,7 +41,7 @@ jobs:
|
|||||||
test-jdk:
|
test-jdk:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [ '8', '11', '17', '21', '24' ]
|
version: [ '8', '11', '17', '21', '25' ]
|
||||||
name: test jdk${{ matrix.version }}
|
name: test jdk${{ matrix.version }}
|
||||||
needs: changes
|
needs: changes
|
||||||
if: ${{ needs.changes.outputs.code == 'true' }}
|
if: ${{ needs.changes.outputs.code == 'true' }}
|
||||||
@ -58,4 +58,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-jdk${{ matrix.version }}-${{ hashFiles('**/*.sbt') }}
|
key: ${{ runner.os }}-jdk${{ matrix.version }}-${{ hashFiles('**/*.sbt') }}
|
||||||
restore-keys: ${{ runner.os }}-jdk${{ matrix.version }}-
|
restore-keys: ${{ runner.os }}-jdk${{ matrix.version }}-
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ./sbt test
|
run: |
|
||||||
|
if [ "${{ matrix.version }}" -ge "24" ]; then
|
||||||
|
export _JAVA_OPTIONS="--enable-native-access=ALL-UNNAMED"
|
||||||
|
fi
|
||||||
|
./sbt test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user