Skip to content

Commit 92a3a2c

Browse files
committed
[GHA] Rework ci to use temurin for ea jdks to reduce steps
1 parent 05de14a commit 92a3a2c

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,20 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [ubuntu-latest, macOS-latest, windows-latest]
11-
java: [11, 17, 21, 22]
12-
distribution: ['zulu']
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
java: [11, 17, 21, 22-ea]
12+
distribution: ['temurin']
1313
fail-fast: false
1414
max-parallel: 4
1515
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Set JDK from jdk.java.net
20-
uses: oracle-actions/setup-java@v1
21-
with:
22-
website: jdk.java.net
23-
release: ${{ matrix.java }}
24-
if: ${{ matrix.java != '11' && matrix.java != '17' }}
25-
- name: Set up older JDK
19+
- name: Set up JDK
2620
uses: actions/setup-java@v3
2721
with:
2822
java-version: ${{ matrix.java }}
2923
distribution: ${{ matrix.distribution }}
30-
if: ${{ matrix.java == '11' || matrix.java == '17' }}
3124
- name: Print JDK Version
3225
run: java -version
3326
- name: Cache local Maven m2

0 commit comments

Comments
 (0)