1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00
GPXSee/.github/workflows/android.yml

52 lines
1.6 KiB
YAML
Raw Normal View History

2022-06-04 10:39:29 +02:00
name: Android
on:
push:
branches:
- master
jobs:
build:
name: GPXSee
runs-on: ubuntu-22.04
2022-06-04 10:39:29 +02:00
steps:
- name: Checkout
uses: actions/checkout@v4
2022-06-10 23:40:47 +02:00
- name: set up JDK 11
uses: actions/setup-java@v4
2022-06-04 10:39:29 +02:00
with:
distribution: 'temurin'
2022-06-10 23:40:47 +02:00
java-version: '11'
2022-06-04 10:39:29 +02:00
- name: Setup Android SDK
2024-01-18 22:27:57 +01:00
uses: android-actions/setup-android@v3
2024-01-18 22:37:08 +01:00
with:
cmdline-tools-version: 9862592
- name: Install android platform, build-tools and ndk
2024-01-18 22:39:56 +01:00
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-33" "build-tools;33.0.0" "ndk;23.1.7779620"
2022-07-31 17:10:32 +02:00
- name: Setup NDK path
2022-10-08 15:38:36 +02:00
run: echo "ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/23.1.7779620/" >> $GITHUB_ENV
- name: Install Qt (Desktop)
2024-10-02 08:04:42 +02:00
uses: jurplel/install-qt-action@v4
with:
version: '6.4.0'
- name: Install Qt (Android)
2024-10-02 08:04:42 +02:00
uses: jurplel/install-qt-action@v4
2022-06-04 10:39:29 +02:00
with:
2023-03-26 19:35:42 +02:00
version: '6.4.0'
2022-06-04 10:39:29 +02:00
target: 'android'
2023-08-05 09:51:04 +02:00
arch: 'android_arm64_v8a'
modules: qtimageformats qtpositioning qtserialport qt5compat
2022-06-10 23:26:28 +02:00
- name: Install Android OpenSSL
run: git clone https://github.com/KDAB/android_openssl.git
- name: Create localization
run: lrelease gpxsee.pro
2022-06-04 10:39:29 +02:00
- name: Configure build
2022-07-31 17:10:32 +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@v4
2022-06-11 00:02:23 +02:00
with:
2023-08-05 09:51:04 +02:00
name: GPXSee-arm64_v8a.apk
2022-06-11 00:02:23 +02:00
path: android-build/build/outputs/apk/debug/android-build-debug.apk