Skip to content

Commit

Permalink
[GHA] Rework ci to use temurin for ea jdks to reduce steps
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Nov 3, 2023
1 parent 05de14a commit 92a3a2c
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [11, 17, 21, 22]
distribution: ['zulu']
os: [ubuntu-latest, macos-latest, windows-latest]
java: [11, 17, 21, 22-ea]
distribution: ['temurin']
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Set JDK from jdk.java.net
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java }}
if: ${{ matrix.java != '11' && matrix.java != '17' }}
- name: Set up older JDK
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
if: ${{ matrix.java == '11' || matrix.java == '17' }}
- name: Print JDK Version
run: java -version
- name: Cache local Maven m2
Expand Down

0 comments on commit 92a3a2c

Please sign in to comment.