Skip to content

Commit 0a13efc

Browse files
authored
gh-152785: Upgrade Java from 17 to 21 in GHA Android (#152783)
Upgrade Java from 17 to 21 in GHA Android, and document the Java version requirement.
1 parent 31864bd commit 0a13efc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ jobs:
354354
with:
355355
persist-credentials: false
356356
- name: Build and test
357-
run: python3 Platforms/Android ci --fast-ci ${{ matrix.arch }}-linux-android
357+
run: JAVA_HOME="${JAVA_HOME_21_X64:-$JAVA_HOME_21_arm64}" python3 Platforms/Android ci --fast-ci ${{ matrix.arch }}-linux-android
358358

359359
build-ios:
360360
name: iOS

Platforms/Android/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ any packages it needs.
3030
The script also requires the following commands to be on the `PATH`:
3131

3232
* `curl`
33-
* `java` (or set the `JAVA_HOME` environment variable)
33+
* `java` (or set the `JAVA_HOME` environment variable).
34+
Java versions 17 and 21 are supported.
3435

3536
## Building
3637

0 commit comments

Comments
 (0)