Skip to content

Commit 3aa63ab

Browse files
kdwkrclaude
andauthored
fix(scatterlab-prebuild-android): build 잡에 JDK를 설치한다 (#5)
첫 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) <noreply@anthropic.com>
1 parent 18afe74 commit 3aa63ab

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/scatterlab-prebuild-android.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ jobs:
132132
- uses: ./.github/actions/setup-node
133133
- uses: ./.github/actions/yarn-install
134134

135+
# The runner image ships no JDK, and `./gradlew` below needs one. Same version and
136+
# distribution as the `prepare` job so both halves of this workflow build against
137+
# the same toolchain.
138+
- uses: actions/setup-java@v5
139+
with:
140+
distribution: 'temurin'
141+
java-version: '17'
142+
135143
# Without a warm ccache every run is a full C++ rebuild of ReactCommon.
136144
- name: Restore the Android ccache
137145
uses: actions/cache/restore@v4

0 commit comments

Comments
 (0)