Skip to content

Commit

Permalink
update CI to test on JDK 21 (#1081)
Browse files Browse the repository at this point in the history
Switches back to zulu distribution because temurin
is slow to get the updated release out.
  • Loading branch information
brharrington authored Oct 4, 2023
1 parent 19e5a8f commit 0af36c0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ jobs:
fetch-depth: 0
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 20
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 20
distribution: 'temurin'
java-version: 21
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK20=$JAVA_HOME" >> $GITHUB_ENV
- run: echo "JDK21=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK17=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
- name: Build
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ jobs:
- uses: actions/checkout@v3
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 20
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 20
distribution: 'temurin'
java-version: 21
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK20=$JAVA_HOME" >> $GITHUB_ENV
- run: echo "JDK21=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK17=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
- name: Build candidate
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
fetch-depth: 0
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 20
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 20
distribution: 'temurin'
java-version: 21
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK20=$JAVA_HOME" >> $GITHUB_ENV
- run: echo "JDK21=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK17=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
distribution: 'zulu'
cache: 'gradle'
- run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ subprojects {
useJUnitPlatform()
}

[17, 20].each { additionalJDK ->
[17, 21].each { additionalJDK ->
def additionalTestTask = tasks.register("testJDK$additionalJDK", Test) {
description = "Runs tests against JDK $additionalJDK."
group = 'verification'
Expand Down

0 comments on commit 0af36c0

Please sign in to comment.