Skip to content

Commit 18a1a06

Browse files
committed
Add Android release workflow
1 parent 0548479 commit 18a1a06

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/source-and-docs-release.yml renamed to .github/workflows/build-release.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ on:
3535
type: string
3636
description: "CPython release number (ie '3.11.5', note without the 'v' prefix)"
3737

38-
name: "Build Python source and docs artifacts"
38+
name: "Build Python release artifacts"
3939

4040
permissions: {}
4141

@@ -184,3 +184,39 @@ jobs:
184184
185185
cd ../installation
186186
./bin/python3 -m test -uall
187+
188+
build-android:
189+
needs:
190+
- verify-input
191+
192+
# Android binary releases began in Python 3.14.
193+
if: |
194+
!(
195+
startsWith(needs.verify-input.outputs.cpython_release, '3.9.') ||
196+
startsWith(needs.verify-input.outputs.cpython_release, '3.10.') ||
197+
startsWith(needs.verify-input.outputs.cpython_release, '3.11.') ||
198+
startsWith(needs.verify-input.outputs.cpython_release, '3.12.') ||
199+
startsWith(needs.verify-input.outputs.cpython_release, '3.13.')
200+
)
201+
timeout-minutes: 60
202+
strategy:
203+
matrix:
204+
arch: [aarch64, x86_64]
205+
include:
206+
- arch: aarch64
207+
runs-on: macos-15
208+
- arch: x86_64
209+
runs-on: ubuntu-24.04
210+
211+
runs-on: ${{ matrix.runs-on }}
212+
steps:
213+
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
214+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
215+
with:
216+
persist-credentials: false
217+
repository: "${{ env.GIT_REMOTE }}/cpython"
218+
ref: "v${{ env.CPYTHON_RELEASE }}"
219+
220+
- uses: ./.github/actions/build-android
221+
with:
222+
triplet: ${{ matrix.arch }}-linux-android

0 commit comments

Comments
 (0)