-
-
Notifications
You must be signed in to change notification settings - Fork 260
43 lines (41 loc) · 1.09 KB
/
build-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
name: build-android
on:
push:
branches:
- master
paths-ignore:
- 'doc/**'
- '*.md'
pull_request:
branches:
- master
paths-ignore:
- 'doc/**'
- '*.md'
jobs:
build:
name: Build
runs-on: ubuntu-22.04
strategy:
matrix:
arch: [android_armv7, android_arm64_v8a, android_x86, android_x86_64]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.4.3'
host: 'linux'
target: 'android'
arch: ${{ matrix.arch }}
modules: 'qtcharts qtserialbus qtserialport qtwebsockets'
- name: Build for Android
run: |
mkdir build
cd build
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}/lib/cmake/Qt6' -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ../
make