From dd31908f3a784dc27412b9dad772eb44e0a3b8a2 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Wed, 21 Sep 2022 15:50:08 +0200 Subject: [PATCH] Use for windows exe and msi build same JDKs --- .github/workflows/win-exe.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/win-exe.yml b/.github/workflows/win-exe.yml index 8cbdad21e..55ee4b2b0 100644 --- a/.github/workflows/win-exe.yml +++ b/.github/workflows/win-exe.yml @@ -16,6 +16,8 @@ on: env: JAVA_VERSION: 19 + JAVA_DIST: 'zulu' + JAVA_CACHE: 'maven' defaults: run: @@ -32,9 +34,9 @@ jobs: - name: Setup Java uses: actions/setup-java@v2 with: - distribution: 'zulu' + distribution: ${{ env.JAVA_DIST }} java-version: ${{ env.JAVA_VERSION }} - cache: 'maven' + cache: ${{ env.JAVA_CACHE }} - id: versions name: Apply version information run: | @@ -223,9 +225,9 @@ jobs: run: mv dist/win/bundle/resources/Cryptomator*.msi dist/win/bundle/resources/Cryptomator.msi - uses: actions/setup-java@v2 with: - distribution: 'temurin' + distribution: ${{ env.JAVA_DIST }} java-version: ${{ env.JAVA_VERSION }} - cache: 'maven' + cache: ${{ env.JAVA_CACHE }} - name: Generate license for exe run: > mvn -B license:add-third-party