https://github.com/python/cpython/commit/0a13efc3fb0bf0896612ed20decce3ce4eb5e05b
commit: 0a13efc3fb0bf0896612ed20decce3ce4eb5e05b
branch: main
author: Victor Stinner <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2026-07-03T10:27:13+08:00
summary:

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.

files:
M .github/workflows/build.yml
M Platforms/Android/README.md

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5b320ffb11d8933..9ef98f556cb205b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -354,7 +354,7 @@ jobs:
         with:
           persist-credentials: false
       - name: Build and test
-        run: python3 Platforms/Android ci --fast-ci ${{ matrix.arch 
}}-linux-android
+        run: JAVA_HOME="${JAVA_HOME_21_X64:-$JAVA_HOME_21_arm64}" python3 
Platforms/Android ci --fast-ci ${{ matrix.arch }}-linux-android
 
   build-ios:
     name: iOS
diff --git a/Platforms/Android/README.md b/Platforms/Android/README.md
index d6f95c365c63a0b..54b7f1c46a59db0 100644
--- a/Platforms/Android/README.md
+++ b/Platforms/Android/README.md
@@ -30,7 +30,8 @@ any packages it needs.
 The script also requires the following commands to be on the `PATH`:
 
 * `curl`
-* `java` (or set the `JAVA_HOME` environment variable)
+* `java` (or set the `JAVA_HOME` environment variable).
+  Java versions 17 and 21 are supported.
 
 ## Building
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to