From 164d700b426f752dfa360d15b7260d2d5096f3d3 Mon Sep 17 00:00:00 2001 From: Daewoon Kim Date: Fri, 11 Sep 2026 10:26:48 +0900 Subject: [PATCH] =?UTF-8?q?fix(scatterlab-prebuild-android):=20build=20?= =?UTF-8?q?=EC=9E=A1=EC=97=90=20JDK=EB=A5=BC=20=EC=84=A4=EC=B9=98=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 첫 dry-run(run 34550291692)이 Gradle 실행에서 죽었다: ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 리눅스 러너 이미지에 JDK가 없다. `prepare` 잡은 소비자 스모크 테스트가 `./gradlew` 를 쓰느라 `actions/setup-java` 를 들고 있었지만, 정작 ReactAndroid 를 빌드하는 `build` 잡에는 없었다. 같은 버전·배포판(temurin 17) 으로 맞춰 두 잡이 같은 툴체인을 쓰게 한다. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/scatterlab-prebuild-android.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/scatterlab-prebuild-android.yml b/.github/workflows/scatterlab-prebuild-android.yml index 8ace0b8e6a4..c5d722ebfa7 100644 --- a/.github/workflows/scatterlab-prebuild-android.yml +++ b/.github/workflows/scatterlab-prebuild-android.yml @@ -132,6 +132,14 @@ jobs: - uses: ./.github/actions/setup-node - uses: ./.github/actions/yarn-install + # The runner image ships no JDK, and `./gradlew` below needs one. Same version and + # distribution as the `prepare` job so both halves of this workflow build against + # the same toolchain. + - uses: actions/setup-java@v5 + with: + distribution: 'temurin' + java-version: '17' + # Without a warm ccache every run is a full C++ rebuild of ReactCommon. - name: Restore the Android ccache uses: actions/cache/restore@v4