-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
gh-137242: Add Android CI job #137186
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
gh-137242: Add Android CI job #137186
Changes from all commits
97ffb3e
bd7b642
1d8dc2f
51ee923
0d1b6d1
67c7af3
16f1230
563ca5a
bd876f4
6b9184c
55b91f7
56bed39
f7f9f44
4807047
b3daf4b
c9700e4
e8e2a9e
7e87375
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 |
---|---|---|
|
@@ -397,6 +397,29 @@ jobs: | |
- name: SSL tests | ||
run: ./python Lib/test/ssltests.py | ||
|
||
build-android: | ||
name: Android (${{ matrix.arch }}) | ||
needs: build-context | ||
if: needs.build-context.outputs.run-tests == 'true' | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# Use the same runs-on configuration as build-macos and build-ubuntu. | ||
- arch: aarch64 | ||
runs-on: ${{ github.repository_owner == 'python' && 'ghcr.io/cirruslabs/macos-runner:sonoma' || 'macos-14' }} | ||
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. @mhsmith something just occurred to me: is macOS required for this build? GHA has Ubuntu on arm nowadays. Is this just for extended CI coverage? 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. Yes, it's to check that it can be built on both Linux and Mac. It's a cross-compile, so the architecture doesn't need to match for building, only for testing. Unfortunately we can't test aarch64 yet, because GitHub Actions doesn't support the Android emulator on Mac aarch64, and Google doesn't provide the Android development tools at all for Linux aarch64. So Android aarch64 is only tested by the buildbot. |
||
- arch: x86_64 | ||
runs-on: ubuntu-24.04 | ||
|
||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Build and test | ||
run: ./Android/android.py ci ${{ matrix.arch }}-linux-android | ||
|
||
build-wasi: | ||
name: 'WASI' | ||
needs: build-context | ||
|
@@ -705,6 +728,7 @@ jobs: | |
- build-ubuntu | ||
- build-ubuntu-ssltests-awslc | ||
- build-ubuntu-ssltests-openssl | ||
- build-android | ||
- build-wasi | ||
- test-hypothesis | ||
- build-asan | ||
|
@@ -740,6 +764,7 @@ jobs: | |
build-ubuntu, | ||
build-ubuntu-ssltests-awslc, | ||
build-ubuntu-ssltests-openssl, | ||
build-android, | ||
build-wasi, | ||
test-hypothesis, | ||
build-asan, | ||
|
Uh oh!
There was an error while loading. Please reload this page.