From: Victor Stinner Date: Fri, 3 Jul 2026 02:27:13 +0000 (+0200) Subject: gh-152785: Upgrade Java from 17 to 21 in GHA Android (#152783) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=0a13efc3fb0bf0896612ed20decce3ce4eb5e05b;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b320ffb11d8..9ef98f556cb2 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 d6f95c365c63..54b7f1c46a59 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