-
Notifications
You must be signed in to change notification settings - Fork 953
44 lines (41 loc) · 1.21 KB
/
android_build_tests.yml
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
name: '[android] build tests'
on:
pull_request:
branches:
- master
- main
paths:
- 'android/**'
- 'core/**'
- 'gradle/**'
- 'build.gradle'
- 'gradle.properties'
- 'settings.gradle'
- 'gradlew'
- 'gradlew.bat'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
android_build_tests:
runs-on: ${{ github.repository == 'Tencent/Hippy' && fromJson('[''self-hosted'', ''linux'', ''shared'']') || 'ubuntu-latest' }}
container:
image: ghcr.io/tencent/android-release:latest # repository name must be lowercase(${{ github.repository_owner }})
strategy:
matrix:
type: [debug, release]
v8: [v8_min, v8_target]
include:
- type: debug
task: assembleDebug
- type: release
task: assembleRelease
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
lfs: true
- name: Run ${{ matrix.task }}
run: |
./gradlew ${{ matrix.task }} -PINCLUDE_ABI_X86=true -PINCLUDE_ABI_X86_64=true ${{ (matrix.v8 == 'v8_min') && '-PV8_COMPONENT=7.7.299.15' || '' }}