2023-12-19 02:38:10 +01:00
|
|
|
---
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'build/**'
|
|
|
|
- 'doc/**'
|
|
|
|
- 'subprojects/**'
|
|
|
|
- 'systemd/**'
|
|
|
|
- 'win32/**'
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'build/**'
|
|
|
|
- 'doc/**'
|
|
|
|
- 'subprojects/**'
|
|
|
|
- 'systemd/**'
|
|
|
|
- 'win32/**'
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-android:
|
2024-07-05 17:26:49 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2023-12-19 02:38:10 +01:00
|
|
|
steps:
|
|
|
|
- id: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y --no-install-recommends \
|
2024-07-05 17:26:49 +02:00
|
|
|
meson \
|
2024-05-06 12:46:01 +02:00
|
|
|
ccache \
|
2023-12-19 02:38:10 +01:00
|
|
|
quilt
|
2024-04-21 03:43:17 +02:00
|
|
|
|
2024-05-06 12:46:01 +02:00
|
|
|
- id: cache-ccache
|
|
|
|
uses: hendrikmuhs/ccache-action@v1
|
|
|
|
with:
|
|
|
|
key: android
|
|
|
|
|
2024-04-21 03:43:17 +02:00
|
|
|
# todo: remove once NDK 27 is out of beta
|
|
|
|
- name: Install Beta NDK
|
|
|
|
run: |
|
2024-07-05 17:30:50 +02:00
|
|
|
echo y | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "ndk;27.0.11902837"
|
2023-12-19 02:38:10 +01:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
mkdir -p output/android
|
|
|
|
cd ./output/android
|
2024-07-05 17:30:50 +02:00
|
|
|
../../android/build.py $ANDROID_SDK_ROOT $ANDROID_SDK_ROOT/ndk/27.0.11902837 arm64-v8a \
|
2023-12-19 02:38:10 +01:00
|
|
|
--buildtype=debugoptimized -Db_ndebug=true \
|
|
|
|
-Dwrap_mode=forcefallback
|
|
|
|
|
|
|
|
cd -
|
|
|
|
cd ./android
|
2023-12-22 14:20:55 +01:00
|
|
|
export JAVA_HOME=$JAVA_HOME_17_X64
|
2023-12-19 02:38:10 +01:00
|
|
|
./gradlew assembleDebug
|
|
|
|
|