mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-18 21:50:54 +08:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
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' || '' }}
|