Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
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
17 changes: 8 additions & 9 deletions 17 .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ jobs:
run: ./python Lib/test/ssltests.py

build-android:
name: Android (${{ matrix.arch }})
# ${{ '' } is a hack to nest jobs under the same sidebar category.
name: Android${{ '' }} # zizmor: ignore[obfuscation]
needs: build-context
if: needs.build-context.outputs.run-tests == 'true'
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand All @@ -412,13 +412,12 @@ jobs:
- 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
uses: ./.github/workflows/reusable-android.yml
with:
arch: ${{ matrix.arch }}
check-name: ${{ matrix.arch }}
runner-vm-os: ${{ matrix.runs-on }}
timeout-minutes: 60

build-wasi:
name: 'WASI'
Expand Down
59 changes: 59 additions & 0 deletions 59 .github/workflows/reusable-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Reusable Android

on:
workflow_call:
inputs:
arch:
description: CPU architecture
required: true
type: string
check-name:
description: A custom name for the Checks API-reported status
required: false
type: string
runner-vm-os:
description: VM OS to use
required: true
type: string
timeout-minutes:
description: Deadline for the job to complete
required: true
type: number
outputs:
steps:
description: >-
JSON-formatted collection of all build steps with their outputs
value: ${{ jobs.build.outputs.steps }}

env:
FORCE_COLOR: 1
ANDROID_CI_SCRIPT_TRIPLET: ${{ inputs.arch }}-linux-android

jobs:
build:
name: >-
${{
inputs.check-name
&& inputs.check-name
|| format(
'{0}@💻{1}',
inputs.runner-vm-os,
inputs.arch
)
}}

runs-on: ${{ inputs.runner-vm-os }}

timeout-minutes: ${{ inputs.timeout-minutes }}

outputs:
steps: ${{ toJSON(steps) }}

steps:
- name: Fetch CPython source from Git
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Build and test
run: ./Android/android.py ci "${ANDROID_CI_SCRIPT_TRIPLET}"
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.