-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
59 lines (51 loc) · 1.36 KB
/
reusable-android.yml
File metadata and controls
59 lines (51 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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}"