From c64e34510e08b6a9d03b0afa1d7c221971b2d572 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 3 Jul 2026 04:27:13 +0200 Subject: [PATCH] [3.13] gh-152785: Upgrade Java from 17 to 21 in GHA Android (GH-152783) Upgrade Java from 17 to 21 in GHA Android, and document the Java version requirement. (cherry picked from commit 0a13efc3fb0bf0896612ed20decce3ce4eb5e05b) Co-authored-by: Victor Stinner --- .github/workflows/build.yml | 2 +- Android/README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 129dcc03dc2d05a..787acfe7b893ffb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -351,7 +351,7 @@ jobs: with: persist-credentials: false - name: Build and test - run: ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android + run: JAVA_HOME="${JAVA_HOME_21_X64:-$JAVA_HOME_21_arm64}" ./Android/android.py ci --fast-ci ${{ matrix.arch }}-linux-android build-wasi: name: 'WASI' diff --git a/Android/README.md b/Android/README.md index 0004f26e72b21c4..0474bdf1a79147c 100644 --- a/Android/README.md +++ b/Android/README.md @@ -31,7 +31,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