2022-06-04 10:39:29 +02:00
|
|
|
name: Android
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: GPXSee
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2022-06-10 23:40:47 +02:00
|
|
|
- name: set up JDK 11
|
2022-06-04 10:39:29 +02:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2022-06-10 23:40:47 +02:00
|
|
|
java-version: '11'
|
2022-06-04 10:39:29 +02:00
|
|
|
- name: Setup Android SDK
|
|
|
|
uses: android-actions/setup-android@v2
|
|
|
|
- name: Run sdkmanager update
|
|
|
|
run: ${ANDROID_HOME}/tools/bin/sdkmanager --update
|
|
|
|
- name: Install android platform, platform-tools, build-tools and ndk
|
|
|
|
run: ${ANDROID_HOME}/tools/bin/sdkmanager --install "cmdline-tools;latest" "platform-tools" "platforms;android-31" "build-tools;31.0.0" "ndk;22.1.7171670"
|
2022-06-04 13:53:35 +02:00
|
|
|
- name: Install Qt (Desktop)
|
|
|
|
uses: jurplel/install-qt-action@v2
|
2022-06-04 12:57:41 +02:00
|
|
|
with:
|
2022-06-04 13:53:35 +02:00
|
|
|
aqtversion: '==2.1.0'
|
|
|
|
version: '6.3.0'
|
|
|
|
- name: Install Qt (Android)
|
2022-06-04 10:39:29 +02:00
|
|
|
uses: jurplel/install-qt-action@v2
|
|
|
|
with:
|
2022-06-04 11:56:48 +02:00
|
|
|
aqtversion: '==2.1.0'
|
2022-06-04 10:39:29 +02:00
|
|
|
version: '6.3.0'
|
|
|
|
target: 'android'
|
2022-06-04 12:38:17 +02:00
|
|
|
arch: 'android_armv7'
|
2022-06-04 14:20:26 +02:00
|
|
|
modules: qtpositioning qt5compat
|
2022-06-10 23:26:28 +02:00
|
|
|
- name: Install Android OpenSSL
|
|
|
|
run: git clone https://github.com/KDAB/android_openssl.git
|
2022-07-22 19:06:45 +02:00
|
|
|
- name: Create localization
|
|
|
|
run: lrelease gpxsee.pro
|
2022-06-04 10:39:29 +02:00
|
|
|
- name: Configure build
|
2022-06-10 23:26:28 +02:00
|
|
|
run: qmake gpxsee.pro OPENSSL_PATH=android_openssl
|
2022-06-04 10:39:29 +02:00
|
|
|
- name: Build project
|
2022-06-10 23:26:28 +02:00
|
|
|
run: make -j2 apk
|
2022-06-11 00:02:23 +02:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: GPXSee-armv7.apk
|
|
|
|
path: android-build/build/outputs/apk/debug/android-build-debug.apk
|