-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
base: master
Are you sure you want to change the base?
Add Android support #265
Changes from 14 commits
18a1a06
081e3be
a698e15
72104c8
fa37a7f
cc0dbdd
2bc23d5
6efd5ac
197e7ef
9aaa26f
43ad815
6f5dc98
298c8ee
35a3bcb
fc09b3d
0b080a0
5e1f947
ad07089
1b15b57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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: {} | ||||||||||||||||||||
|
||||||||||||||||||||
|
@@ -189,3 +189,46 @@ 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.') | ||||||||||||||||||||
) | ||||||||||||||||||||
mhsmith marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest computing another boolean output within And the use would look as follows:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. The "Fix typo" commit now demonstrates a run which builds Android but not docs, while the most recent "Revert to previous inputs" commit demonstrates the opposite. The other combinations are all covered by a unit test. |
||||||||||||||||||||
timeout-minutes: 60 | ||||||||||||||||||||
strategy: | ||||||||||||||||||||
matrix: | ||||||||||||||||||||
arch: [aarch64, x86_64] | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||||||||||||||||||
include: | ||||||||||||||||||||
- arch: aarch64 | ||||||||||||||||||||
runs-on: macos-15 | ||||||||||||||||||||
- arch: x86_64 | ||||||||||||||||||||
runs-on: ubuntu-24.04 | ||||||||||||||||||||
|
||||||||||||||||||||
runs-on: ${{ matrix.runs-on }} | ||||||||||||||||||||
env: | ||||||||||||||||||||
triplet: ${{ matrix.arch }}-linux-android | ||||||||||||||||||||
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 }}" | ||||||||||||||||||||
|
||||||||||||||||||||
- name: Build and test | ||||||||||||||||||||
run: ./Android/android.py ci "$triplet" | ||||||||||||||||||||
|
||||||||||||||||||||
- uses: actions/upload-artifact@v4 | ||||||||||||||||||||
with: | ||||||||||||||||||||
name: ${{ env.triplet }} | ||||||||||||||||||||
path: cross-build/${{ env.triplet }}/dist/* | ||||||||||||||||||||
if-no-files-found: error |
Uh oh!
There was an error while loading. Please reload this page.