Skip to content

Register figure info windows from JS and unify section() API. #3667

Register figure info windows from JS and unify section() API.

Register figure info windows from JS and unify section() API. #3667

name: Akhenaten Build Android
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: run on linux
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-java@v5
with:
java-version: 17
distribution: temurin
- name: update-workspace
run: |
sudo apt -qq update
sudo apt install --yes cmake build-essential ninja-build libsdl2-dev libsdl2-mixer-dev
- name: build-project
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_DEPENDENCIES=android ..
cd ..
- name: Build APK
run: |
cd android
SDK_ROOT="${ANDROID_SDK_ROOT:-${ANDROID_HOME:-}}"
if [ -z "$SDK_ROOT" ]; then
for candidate in "$HOME/Android/Sdk" "$HOME/android-sdk" "/usr/local/lib/android/sdk"; do
if [ -d "$candidate" ]; then
SDK_ROOT="$candidate"
break
fi
done
fi
if [ -z "$SDK_ROOT" ] || [ ! -d "$SDK_ROOT" ]; then
echo "Android SDK not found on runner"
exit 1
fi
printf 'sdk.dir=%s\n' "$SDK_ROOT" > local.properties
bash ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v6
with:
name: apk
path: android/akhenaten/build/outputs/apk/debug/akhenaten-debug.apk