Browse Source

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
Julian Raufelder 1 year ago
parent
commit
ef4738f920

+ 1 - 0
.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

+ 1 - 0
.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

+ 1 - 0
.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') }}

+ 2 - 0
.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: >