Skip to content

Commit a838841

Browse files
committed
[#292] Replace JDK 24 with 25
and test with JDK 26 as well
1 parent 457b99b commit a838841

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/ci-pull.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,34 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
java-version: [ '17', '21', '24' ]
18+
java-version:
19+
- { name: "17", java_version_numeric: 17 }
20+
- { name: "21", java_version_numeric: 21 }
21+
- { name: "25", java_version_numeric: 25 }
22+
- { name: "26-ea", java_version_numeric: 26, from: 'jdk.java.net' }
1923

2024
runs-on: ubuntu-latest
2125

2226
steps:
23-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24-
- name: Set up JDK ${{ matrix.java-version }}
27+
- name: Checkout the sources
28+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
- name: Set up latest JDK ${{ matrix.java-version.name }} from jdk.java.net
30+
if: matrix.java-version.from == 'jdk.java.net'
31+
uses: oracle-actions/setup-java@2e744f723b003fdd759727d0ff654c8717024845 # v1.4.0
32+
with:
33+
website: jdk.java.net
34+
release: ${{ matrix.java-version.java_version_numeric }}
35+
- name: Set up JDK ${{ matrix.java-version.name }}
2536
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
37+
if: matrix.java-version.from != 'jdk.java.net'
2638
with:
27-
java-version: ${{ matrix.java-version }}
39+
java-version: ${{ matrix.java-version.java_version_numeric }}
2840
distribution: 'temurin'
2941
cache: maven
3042
- name: Build API
3143
run: |
3244
EXTRA_ARGS=""
33-
if [[ "${{ matrix.java }}" -lt 21 ]]; then
45+
if [[ "${{ matrix.java-version.java_version_numeric }}" -lt 21 ]]; then
3446
# for JDKs < 21 we should skip extra checks as those won't pass:
3547
EXTRA_ARGS="-Pskip-checks"
3648
fi

0 commit comments

Comments
 (0)