Skip to content

Commit

Permalink
gradle.yml workflow: install JDK 21 and 22-ea
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Mar 7, 2024
1 parent f46cc07 commit b184c65
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
java: ['21']
distribution: ['temurin']
fail-fast: false
name: ${{ matrix.os }} JDK ${{ matrix.java }}
name: ${{ matrix.os }} JDK 22
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
# Setup JDK 21 & JDK 22 to make JDK 22 available to the Gradle Java Toolchains feature
# When installing multiple JDKs, the last JDK installed is the default and will be used to run Gradle itself
java-version: |
22-ea
21
- name: Cache Gradle packages
uses: actions/cache@v4
with:
Expand Down

0 comments on commit b184c65

Please sign in to comment.