From 3744543933284cfb4f710660167e5609f109fc67 Mon Sep 17 00:00:00 2001 From: islameldesoky1 Date: Mon, 27 Apr 2026 15:52:34 +0100 Subject: [PATCH] fix(ci): upgrade setup-java to v4 with temurin distribution actions/setup-java@v1 sets JAVA_HOME to a path that no longer exists on macOS-14 runners (/Users/runner/hostedtoolcache/jdk/...), causing Gradle to fail with "JAVA_HOME is set to an invalid directory". Upgrading to v4 + temurin fixes the JAVA_HOME resolution. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0a6406..0707e9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,9 +144,10 @@ jobs: node-version: ${{ env.NODE_JS_VERSION }} - name: Java 17 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 17 + java-version: '17' + distribution: 'temurin' - name: Install SDK Dependencies run: yarn install --frozen-lockfile