From 0b2e519f9310e0565cdcf62f6fb9afaeb165d52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= <148013+szpak@users.noreply.github.com> Date: Tue, 14 May 2024 19:44:00 +0200 Subject: [PATCH] Fix JDK 8 build on GH Actions with macos 14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By switching to Zulu for ARM - Temurin JDK 8 is not available for ARM - https://github.com/adoptium/adoptium/issues/96 Co-authored-by: Leonard Brünings --- .github/actions/setup-jdks/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-jdks/action.yml b/.github/actions/setup-jdks/action.yml index c440086a13..5afb6795da 100644 --- a/.github/actions/setup-jdks/action.yml +++ b/.github/actions/setup-jdks/action.yml @@ -20,7 +20,8 @@ runs: - name: 'Set up JDK 8' uses: actions/setup-java@v4 with: - distribution: 'temurin' + # Temurin JDK 8 for macos on ARM is not available: https://github.com/adoptium/adoptium/issues/96 + distribution: ${{ runner.os == 'macOS' && 'zulu' || 'temurin' }} java-version: 8 - name: Prepare JDK8 env var shell: bash