From ba913976ea03d692ba2b688eef4f22974821542a Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Tue, 5 Sep 2023 07:19:36 +0200 Subject: [PATCH] Upgrade JDKs used by GitHub Actions builds Summary of changes: - Use JDK 11.0.20.1 instead of 11.0.19. - Use JDK 17.0.8.1 instead of 17.0.7. - Use JDK 20.0.2 instead of 20.0.1. - Re-introduce the early access build, as Error Prone is now compatible with JDK 21-ea. See: - https://www.oracle.com/java/technologies/javase/11-0-20-relnotes.html - https://www.oracle.com/java/technologies/javase/17-0-8-relnotes.html - https://www.oracle.com/java/technologies/javase/20-0-2-relnotes.html --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/workflows/build.yaml | 10 +++++++--- .github/workflows/codeql.yml | 2 +- .github/workflows/pitest-analyze-pr.yml | 2 +- .github/workflows/pitest-update-pr.yml | 2 +- .github/workflows/sonarcloud.yml | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f186587c591..ab6c018f0b2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -42,7 +42,7 @@ Please replace this sentence with log output, if applicable. - Operating system (e.g. MacOS Monterey). -- Java version (i.e. `java --version`, e.g. `17.0.7`). +- Java version (i.e. `java --version`, e.g. `17.0.8.1`). - Error Prone version (e.g. `2.18.0`). - Error Prone Support version (e.g. `0.9.0`). diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 048bf5010e2..a2448e024d0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,18 +10,22 @@ jobs: strategy: matrix: os: [ ubuntu-22.04 ] - jdk: [ 11.0.19, 17.0.7, 20.0.1 ] + jdk: [ 11.0.20.1, 17.0.8.1, 20.0.2 ] distribution: [ temurin ] experimental: [ false ] include: - os: macos-12 - jdk: 17.0.7 + jdk: 17.0.8.1 distribution: temurin experimental: false - os: windows-2022 - jdk: 17.0.7 + jdk: 17.0.8.1 distribution: temurin experimental: false + - os: ubuntu-22.04 + jdk: 21-ea + distribution: zulu + experimental: true runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} steps: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index eb1b86334e6..08cc36470e2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,7 +28,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 with: - java-version: 17.0.7 + java-version: 17.0.8.1 distribution: temurin cache: maven - name: Initialize CodeQL diff --git a/.github/workflows/pitest-analyze-pr.yml b/.github/workflows/pitest-analyze-pr.yml index 11f069dd7ad..be6b8858486 100644 --- a/.github/workflows/pitest-analyze-pr.yml +++ b/.github/workflows/pitest-analyze-pr.yml @@ -19,7 +19,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 with: - java-version: 17.0.7 + java-version: 17.0.8.1 distribution: temurin cache: maven - name: Run Pitest diff --git a/.github/workflows/pitest-update-pr.yml b/.github/workflows/pitest-update-pr.yml index 55aca7a1c17..42498a73f76 100644 --- a/.github/workflows/pitest-update-pr.yml +++ b/.github/workflows/pitest-update-pr.yml @@ -26,7 +26,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 with: - java-version: 17.0.7 + java-version: 17.0.8.1 distribution: temurin cache: maven - name: Download Pitest analysis artifact diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index cc93944196a..71545d185d3 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -23,7 +23,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 with: - java-version: 17.0.7 + java-version: 17.0.8.1 distribution: temurin cache: maven - name: Create missing `test` directory