From f5deaaf0ea81072c2ce5a1cbc363a7b6ba0240cc Mon Sep 17 00:00:00 2001 From: Hector Castejon Diaz Date: Wed, 22 Apr 2026 07:55:36 +0000 Subject: [PATCH 1/2] Bump actions/setup-java to v3.14.1 with adopt distribution The setup-build-environment composite action was pinned to actions/setup-java@v1.4.4 (Aug 2020). On arm64 macos-latest runners (Image: macos-15-arm64) v1.4.4 resolves JDKs under the legacy x64-only tool cache path and intermittently fails with: JAVA_HOME: /Users/runner/hostedtoolcache/jdk/8.0.492/x64 The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program. Observed on PR #773 run 24765873049, jobs unit-tests (macos-latest, 8), (macos-latest, 11), and (macos-latest, 17). Java 20 on the same commit passed, and the same workflow on the same commit SHA has alternated between pass and fail, confirming the x64/arm64 mismatch is the root cause. release.yml and package.yml already use v3.14.1 with distribution: "adopt"; this change aligns setup-build-environment with them. Co-authored-by: Isaac --- .github/actions/setup-build-environment/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-build-environment/action.yml b/.github/actions/setup-build-environment/action.yml index e402edb8f..8e3d2f728 100644 --- a/.github/actions/setup-build-environment/action.yml +++ b/.github/actions/setup-build-environment/action.yml @@ -19,9 +19,10 @@ runs: oidc-provider-name: github-actions - name: Set up JDK - uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4 + uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1 with: java-version: ${{ inputs.java-version }} + distribution: "adopt" - name: Configure Maven for JFrog if: runner.os != 'macOS' From 581d5b975aef682a94df181cad25c58f49216f04 Mon Sep 17 00:00:00 2001 From: Hector Castejon Diaz Date: Wed, 22 Apr 2026 08:00:51 +0000 Subject: [PATCH 2/2] Use zulu distribution for Java 8 arm64 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First attempt used distribution: "adopt" to mirror release.yml / package.yml. release.yml runs on ubuntu-latest (x64) where adopt ships Java 8, but this composite action is also used on macos-latest (arm64) where adopt has dropped Java 8 — only 11+ are published. On PR #774 run 24767042972 unit-tests (macos-latest, 8) failed at setup-java with: Could not find satisfied version for SemVer '8'. Available versions: 26.0.0+35, 25.0.2+10.0.LTS, ..., 11.0.15+10 Switching to zulu, which publishes Java 8 for arm64 macOS. zulu also matches the default used by setup-java v1.4.4 before this bump, so behavior under the composite action on existing callers is unchanged for x64. release.yml and package.yml still use adopt; they only run on ubuntu so they are unaffected. Co-authored-by: Isaac --- .github/actions/setup-build-environment/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-build-environment/action.yml b/.github/actions/setup-build-environment/action.yml index 8e3d2f728..dc0ef8d0a 100644 --- a/.github/actions/setup-build-environment/action.yml +++ b/.github/actions/setup-build-environment/action.yml @@ -22,7 +22,9 @@ runs: uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1 with: java-version: ${{ inputs.java-version }} - distribution: "adopt" + # zulu ships Java 8 on arm64 macOS (as the matrix requires); adopt does not. + # zulu is also the default that setup-java v1.4.4 used before this bump. + distribution: "zulu" - name: Configure Maven for JFrog if: runner.os != 'macOS'