Compare commits

...

2 Commits

Author SHA1 Message Date
zyphlar
fccda2d8b9 add java at runtime
Signed-off-by: zyphlar <zyphlar@gmail.com>
2026-01-11 00:46:23 -08:00
zyphlar
75439b5d89 [ci] Use Docker Android SDK container for builds
Signed-off-by: zyphlar <zyphlar@gmail.com>
2026-01-11 00:18:52 -08:00

View File

@@ -38,7 +38,26 @@ jobs:
lint:
name: Android Lint
runs-on: ubuntu-latest
container:
image: codeberg.org/comaps/docker-android-sdk:latest
options: --user root
steps:
- name: Install build dependencies
shell: bash
run: |
apt-get update -y
apt-get install -y \
git \
python3-pip \
openjdk-21-jdk
pip install "protobuf<3.21" --break-system-packages
- name: Install Android SDK components
shell: bash
run: |
yes | sdkmanager --licenses || true
sdkmanager "platforms;android-36" "build-tools;36.0.0" "ndk;28.2.13676358"
- name: Checkout sources
uses: actions/checkout@v4
with:
@@ -56,6 +75,9 @@ jobs:
android-check:
name: Build Android Debug
runs-on: ubuntu-latest
container:
image: codeberg.org/comaps/docker-android-sdk:latest
options: --user root
strategy:
fail-fast: false
matrix:
@@ -74,8 +96,31 @@ jobs:
- name: Install build tools and dependencies
shell: bash
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build
apt-get update -y
apt-get install -y \
ninja-build \
qt6-base-dev \
qt6-declarative-dev \
qt6-positioning-dev \
libqt6svg6-dev \
optipng \
libfreetype-dev \
libharfbuzz-dev \
libxrandr-dev \
libxinerama-dev \
libxcursor-dev \
libxi-dev \
python3-pip \
zlib1g-dev \
git \
ccache
pip install "protobuf<3.21" --break-system-packages
- name: Install Android SDK components
shell: bash
run: |
yes | sdkmanager --licenses || true
sdkmanager "platforms;android-36" "build-tools;36.0.0" "ndk;28.2.13676358"
- name: Checkout sources
uses: actions/checkout@v4