Skip to content

Add Android support #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Aug 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
type: string
description: "CPython release number (ie '3.11.5', note without the 'v' prefix)"

name: "Build Python source and docs artifacts"
name: "Build Python release artifacts"

permissions: {}

Expand Down Expand Up @@ -184,3 +184,39 @@ jobs:

cd ../installation
./bin/python3 -m test -uall

build-android:
needs:
- verify-input

# Android binary releases began in Python 3.14.
if: |
!(
startsWith(needs.verify-input.outputs.cpython_release, '3.9.') ||
startsWith(needs.verify-input.outputs.cpython_release, '3.10.') ||
startsWith(needs.verify-input.outputs.cpython_release, '3.11.') ||
startsWith(needs.verify-input.outputs.cpython_release, '3.12.') ||
startsWith(needs.verify-input.outputs.cpython_release, '3.13.')
)
timeout-minutes: 60
strategy:
matrix:
arch: [aarch64, x86_64]
include:
- arch: aarch64
runs-on: macos-15
- arch: x86_64
runs-on: ubuntu-24.04

runs-on: ${{ matrix.runs-on }}
steps:
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
repository: "${{ env.GIT_REMOTE }}/cpython"
ref: "v${{ env.CPYTHON_RELEASE }}"

- uses: ./.github/actions/build-android
with:
triplet: ${{ matrix.arch }}-linux-android