Skip to content

Commit 737a12c

Browse files
committed
Adopt oracle-actions/setup-java
https://github.com/oracle-actions/setup-java We still have to use zulu for versions < 11
1 parent e73e023 commit 737a12c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,28 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: [ubuntu-latest, macOS-latest, windows-latest]
27-
java: [8, 11, 17, 18, 19-ea]
27+
java: [8, 11, 17, 18, 19]
2828
distribution: ['zulu']
2929
fail-fast: false
3030
max-parallel: 4
3131
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
3232

3333
steps:
3434
- uses: actions/checkout@v3
35-
- name: Set up JDK
35+
- name: Set Oracle JDK
36+
uses: oracle-actions/setup-java@v1
37+
with:
38+
website: jdk.java.net
39+
release: ${{ matrix.java }}
40+
if: ${{ matrix.java != '8' && matrix.java != '11' }}
41+
- name: Set up older JDK
3642
uses: actions/setup-java@v3
3743
with:
3844
java-version: ${{ matrix.java }}
3945
distribution: ${{ matrix.distribution }}
46+
if: ${{ matrix.java == '8' || matrix.java == '11' }}
47+
- name: Print JDK Version
48+
run: java --version
4049
- name: Cache local Maven m2
4150
uses: actions/cache@v3
4251
with:

0 commit comments

Comments
 (0)