Skip to content

Commit 32ecfa9

Browse files
authored
Add support for JDK 28 in Gradle workflow
Switch to oracle-actions/setup-java because they can run the very latest EA builds in a timely manner. via Grok
1 parent f611947 commit 32ecfa9

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/gradle_preview_jdks.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: [ '4.x' ]
99
pull_request:
1010
branches: [ '4.x' ]
11+
workflow_dispatch:
1112

1213
permissions:
1314
contents: read
@@ -19,22 +20,23 @@ jobs:
1920
strategy:
2021
fail-fast: false
2122
matrix:
22-
jdk: [27] # add 28-ea etc. later
23+
jdk: [27, 28] # add 28-ea etc. later
2324

2425
steps:
2526
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26-
- name: Set up JDK 26
27+
- name: Set up JDK 26 for Gradle
2728
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
2829
with:
2930
distribution: 'zulu'
3031
java-version: '26'
3132
cache: gradle
3233

3334
- name: Set up JDK ${{ matrix.jdk }}-ea
34-
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
35+
uses: oracle-actions/setup-java@ec7274acdd237c7fe61395ed2edda22d756b5afe # v1
3536
with:
36-
distribution: 'temurin'
37-
java-version: '${{ matrix.jdk }}-ea'
37+
website: jdk.java.net
38+
release: ${{ matrix.jdk }} # or just "27"
39+
# version: latest # default; this is what you want
3840

3941
- name: Cache Gradle packages
4042
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0

0 commit comments

Comments
 (0)