-
-
Notifications
You must be signed in to change notification settings - Fork 260
40 lines (39 loc) · 1.27 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
name: build-android
on: push
# schedule:
# - cron: '0 0 * * *'
env:
JAVA_HOME: $JAVA_HOME_11_X64
CMAKE_MAKE_PROGRAM: ${{ github.workspace }}/resources/tools/ninja.exe
jobs:
build:
name: Build
runs-on: windows-2019
strategy:
matrix:
target: [android]
arch: [android_armv7]
version: [6.5.3]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.version }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
dir: ${{ github.workspace }}
modules: 'qtcharts qtserialbus qtserialport qtwebsockets'
- name: Build for Android
shell: cmd
run: |
${{ github.workspace }}\${{ matrix.version }}\Qt\${{matrix.version}}\${{matrix.arch}}\bin\qt-cmake.bat ^
-G Ninja ^
-S . ^
-B "build\armeabi_v7a" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DCMAKE_MAKE_PROGRAM:FILEPATH="$CMAKE_MAKE_PROGRAM" ^
-DCMAKE_CXX_COMPILER:FILEPATH="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe" ^
-DANDROID_SDK_ROOT:PATH="$ANDROID_SDK_ROOT" ^
-DANDROID_NDK_ROOT="$ANDROID_NDK_ROOT"