From ef4738f92048a43f3a84dfb47738d229173fd367 Mon Sep 17 00:00:00 2001 From: Julian Raufelder Date: Fri, 11 Aug 2023 15:52:42 +0200 Subject: [PATCH] Use latest version of Java to avoid using an out of date version when building the release See https://github.com/actions/setup-java/tree/main#check-latest for further information --- .github/workflows/appimage.yml | 1 + .github/workflows/debian.yml | 1 + .github/workflows/mac-dmg.yml | 1 + .github/workflows/win-exe.yml | 2 ++ 4 files changed, 5 insertions(+) diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index f966f6b22..f3cf6ae37 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -30,6 +30,7 @@ jobs: distribution: 'zulu' java-version: ${{ env.JAVA_VERSION }} java-package: 'jdk+fx' + check-latest: true cache: 'maven' - name: Ensure major jfx version in pom equals in jdk shell: pwsh diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index bd353a434..edbaa138b 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -51,6 +51,7 @@ jobs: with: distribution: 'zulu' java-version: ${{ env.JAVA_VERSION }} + check-latest: true cache: 'maven' - name: Run maven run: mvn -B clean package -Pdependency-check,linux -DskipTests diff --git a/.github/workflows/mac-dmg.yml b/.github/workflows/mac-dmg.yml index bad80138b..155701c89 100644 --- a/.github/workflows/mac-dmg.yml +++ b/.github/workflows/mac-dmg.yml @@ -45,6 +45,7 @@ jobs: java-version: ${{ env.JAVA_VERSION }} java-package: 'jdk+fx' architecture: ${{ matrix.architecture }} + check-latest: true cache: 'maven' - name: Ensure major jfx version in pom equals in jdk if: ${{ !contains(matrix.os, 'self-hosted') }} diff --git a/.github/workflows/win-exe.yml b/.github/workflows/win-exe.yml index df67c1dcb..b0190c30e 100644 --- a/.github/workflows/win-exe.yml +++ b/.github/workflows/win-exe.yml @@ -45,6 +45,7 @@ jobs: distribution: ${{ env.JAVA_DIST }} java-version: ${{ env.JAVA_VERSION }} java-package: 'jdk' + check-latest: true cache: ${{ env.JAVA_CACHE }} - name: Download and extract JavaFX jmods from Gluon #In the last step we move all jmods files a dir level up because jmods are placed inside a directory in the zip @@ -246,6 +247,7 @@ jobs: with: distribution: ${{ env.JAVA_DIST }} java-version: ${{ env.JAVA_VERSION }} + check-latest: true cache: ${{ env.JAVA_CACHE }} - name: Generate license for exe run: >