-
Notifications
You must be signed in to change notification settings - Fork 51
53 lines (53 loc) · 1.36 KB
/
android.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
45
46
47
48
49
50
51
52
53
name: Android
on:
# push代码时触发workflow
push:
paths:
- 'Examples/**'
- 'GrayCatQt/**'
- 'doc/**'
- 'font/**'
- 'scripts/windows-*.ps1'
- '.qmake.conf'
- 'CatLearnQt.pro'
- '.github/workflows/android.yml'
# pull_request时触发workflow
pull_request:
paths:
- 'Examples/**'
- 'GrayCatQt/**'
- 'doc/**'
- 'font/**'
- 'scripts/windows-*.ps1'
- '.qmake.conf'
- 'CatLearnQt.pro'
- '.github/workflows/android.yml'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
qt_ver: [5.12.10]
qt_target: [android]
qt_arch: [android_x86,android_armv7,android_arm64_v8a]
steps:
- name: Install Qt 5.12.10
uses: jurplel/install-qt-action@v2.10.0
with:
# Version of Qt to install
version: ${{ matrix.qt_ver }}
# Target platform for build
target: ${{ matrix.qt_target }}
# Architecture for Windows/Android
arch: ${{ matrix.qt_arch }}
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: build android
run: |
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
qmake "DEFINES += ANDROID_APP"
make