Skip to content

Commit 0ed6cf2

Browse files
[3.13] gh-152785: Upgrade Java from 17 to 21 in GHA Android (GH-152783) (#152922)
Upgrade Java from 17 to 21 in GHA Android, and document the Java version requirement. (cherry picked from commit 0a13efc) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent b88562e commit 0ed6cf2

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
@@ -351,7 +351,7 @@ jobs:
351351
with:
352352
persist-credentials: false
353353
- name: Build and test
354-
run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
354+
run: JAVA_HOME="${JAVA_HOME_21_X64:-$JAVA_HOME_21_arm64}" ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android
355355

356356
build-wasi:
357357
name: 'WASI'

Android/README.md

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

3333
* `curl`
34-
* `java` (or set the `JAVA_HOME` environment variable)
34+
* `java` (or set the `JAVA_HOME` environment variable).
35+
Java versions 17 and 21 are supported.
3536

3637

3738
## Building

0 commit comments

Comments
 (0)