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:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- id: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- id: cache-ccache
|
|
|
|
uses: hendrikmuhs/ccache-action@v1
|
|
|
|
with:
|
|
|
|
key: android
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y --no-install-recommends \
|
|
|
|
ninja-build \
|
|
|
|
quilt
|
2023-12-22 14:38:08 +01:00
|
|
|
pip3 install --user meson==1.3.0
|
2023-12-19 02:38:10 +01:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
mkdir -p output/android
|
|
|
|
cd ./output/android
|
2023-12-22 14:20:08 +01:00
|
|
|
../../android/build.py $ANDROID_SDK_ROOT $ANDROID_NDK_LATEST_HOME 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
|
|
|
|
|