-
Notifications
You must be signed in to change notification settings - Fork 18
96 lines (89 loc) · 3.58 KB
/
build_android_x64_ndk22.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: build android_x64 ndk22
on:
pull_request:
branches:
- dev/1.13
- master
push:
branches:
- dev/1.13
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Java JDK for Android SDK tools
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Setup Android SDK tools
uses: android-actions/setup-android@v3
with:
packages: "platform-tools platforms;android-29 build-tools;29.0.2 ndk;22.1.7171670"
- name: Dump Android NDK
run: "ls ${ANDROID_HOME}/ndk"
- name: Install Java JDK for Android Qt build
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt/5.15.2/android
key: ${{ runner.os }}-QtCache-5152-android
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.15.2'
host: 'linux'
target: 'android'
modules: android
install-deps: 'true'
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Dump Qt DIR
run: echo ${Qt5_DIR}
- name: Fetch submodules
run: git submodule init && git submodule update
- name: Configure build
run: "cmake -B build
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_PREFIX_PATH=${Qt5_DIR}
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_HOME}/ndk/22.1.7171670/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=${ANDROID_HOME}/ndk/22.1.7171670/prebuilt/linux-x86_64/bin/make
-DANDROID_ABI=x86_64
-DANDROID_SDK_MINVER=24
-DANDROID_SDK_TARGET=26
-DANDROID_NATIVE_API_LEVEL=24
-DQT_ANDROID_PLATFORM_LEVEL=29
-DQT_ANDROID_SDK_BUILDTOOLS_REVISION=29.0.2
-DQT_ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT}
-DQT_ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/22.1.7171670
-DQt5_DIR=${Qt5_DIR}/lib/cmake/Qt5
-DQt5Core_DIR=${Qt5_DIR}/lib/cmake/Qt5Core
-DQt5Gui_DIR=${Qt5_DIR}/lib/cmake/Qt5Gui
-DQt5Qml_DIR=${Qt5_DIR}/lib/cmake/Qt5Qml
-DQt5Network_DIR=${Qt5_DIR}/lib/cmake/Qt5Network
-DQt5Quick_DIR=${Qt5_DIR}/lib/cmake/Qt5Quick
-DQt5QuickControls2_DIR=${Qt5_DIR}/lib/cmake/Qt5QuickControls2
-DQt5Xml_DIR=${Qt5_DIR}/lib/cmake/Qt5Xml
-DQt5Svg_DIR=${Qt5_DIR}/lib/cmake/Qt5Svg
-DQt5Widgets_DIR=${Qt5_DIR}/lib/cmake/Qt5Widgets
-DQt5QmlModels_DIR=${Qt5_DIR}/lib/cmake/Qt5QmlModels
-DQt5Sensors_DIR=${Qt5_DIR}/lib/cmake/Qt5Sensors
-DQt5Positioning_DIR=${Qt5_DIR}/lib/cmake/Qt5Positioning
-DQt5Multimedia_DIR=${Qt5_DIR}/lib/cmake/Qt5Multimedia
-DQt5AndroidExtras_DIR=${Qt5_DIR}/lib/cmake/Qt5AndroidExtras
-DQt5RemoteObjects_DIR=${Qt5_DIR}/lib/cmake/Qt5RemoteObjects
-Wno-dev"
- name: Build
run: cmake --build build
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: osmin-x86_64-debug
path: ${{ github.workspace }}/build/osmin-x86_64/build/outputs/apk/debug/osmin-*-debug.apk
retention-days: 5