From b7838d44abe1c3a3fd762061ac8c16fea4d509f3 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Mon, 4 Oct 2021 09:47:25 -0400 Subject: Using TCK Tested JDK builds of OpenJDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AdoptOpenJDK has been discontinued since July 2021. When using Zulu you get all the latest updated (TCK Tested) builds for all versions of OpenJDK. Also added are fixed (major) release version(s) such as 11.0.3. This is often a good practice whenever a build/test triggers (push/pull events) this can determine if the latest JDK (11) had failed the build vs something in your code that caused it. For example, when building with JDK 11.0.3 (fixed version) the build passes (green) and JDK 11 fails (red) will mean that the latest JDK (11) was the cause and not your code. 

Note: Other distributions such as Temurin do not support archived fixed release prior to Sept. 2021. --- .github/workflows/maven.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1531e216..423bc949 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -13,13 +13,16 @@ jobs: build: runs-on: ubuntu-latest - + strategy: + matrix: + os: [ ubuntu-latest ] + java-version: [ 11.0.3, 11 ] steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@v2 with: - java-version: '11' - distribution: 'adopt' + java-version: ${{ matrix.java-version }} + distribution: 'zulu' - name: Build with Maven run: mvn -B package --file pom.xml -- cgit v1.2.3