Skip to content

Commit

Permalink
Add JDK 21 to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawi01 committed Sep 17, 2023
1 parent 9f350ac commit 9ef9b58
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
needs: build
strategy:
matrix:
jdk: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
jdk: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
goal: [javacCurrent]
include:
- jdk: 11
Expand All @@ -56,10 +56,19 @@ jobs:
uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.jdk }}
if: ${{ matrix.jdk != 21 }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'zulu'

- name: Set up JDK 21-ea
if: ${{ matrix.jdk == 21 }}
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: 21
version: latest

- name: Install Ant
run: |
Expand Down

0 comments on commit 9ef9b58

Please sign in to comment.