Compare commits

...

6 Commits

Author SHA1 Message Date
zyphlar
37846bc6b1 cmake and paths
Signed-off-by: zyphlar <zyphlar@gmail.com>
2026-01-12 07:19:14 -08:00
zyphlar
e086920086 [ci] Add daily 3party cache and configure.sh
Signed-off-by: zyphlar <zyphlar@gmail.com>
2026-01-12 00:51:29 -08:00
zyphlar
838fa4a288 run configure
Signed-off-by: zyphlar <zyphlar@gmail.com>
2026-01-11 21:57:35 -08:00
zyphlar
c305c2e580 [ci] Set Java 21 as default for Android builds
Signed-off-by: zyphlar <zyphlar@gmail.com>
2026-01-11 21:41:35 -08:00
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,30 @@ jobs:
lint:
name: Android Lint
runs-on: ubuntu-latest
container:
image: codeberg.org/comaps/docker-android-sdk:latest
options: --user root
env:
JAVA_HOME: /usr/lib/jvm/java-21-openjdk-amd64
steps:
- name: Install build dependencies
shell: bash
run: |
apt-get update -y
apt-get install -y \
cmake \
git \
python3-pip \
openjdk-21-jdk
pip install "protobuf<3.21" --break-system-packages
update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java
- 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:
@@ -51,11 +74,20 @@ jobs:
- name: Lint
shell: bash
working-directory: android
run: ./gradlew -Pandroidauto=true lint
run: |
cd ..
./configure.sh
cd android
./gradlew -Pandroidauto=true lint
android-check:
name: Build Android Debug
runs-on: ubuntu-latest
container:
image: codeberg.org/comaps/docker-android-sdk:latest
options: --user root
env:
JAVA_HOME: /usr/lib/jvm/java-21-openjdk-amd64
strategy:
fail-fast: false
matrix:
@@ -74,20 +106,55 @@ 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 \
cmake \
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 \
openjdk-21-jdk
pip install "protobuf<3.21" --break-system-packages
update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java
- 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:
fetch-depth: 200 # enough to get all commits for the current day
- name: Get date for cache key
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: "3party"
key: 3party-cache-${{ steps.date.outputs.date }}
- name: Parallel submodules checkout
shell: bash
run: git submodule update --depth 1 --init --recursive --jobs=$(($(nproc) * 20))
- name: Configure ccache
uses: hendrikmuhs/ccache-action@v1.2
uses: https://github.com/hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.workflow }}-${{ matrix.flavor }}
@@ -98,8 +165,9 @@ jobs:
CMAKE_C_COMPILER_LAUNCHER: ccache
CMAKE_CXX_COMPILER_LAUNCHER: ccache
run: |
cmake --version
ninja --version
cd ..
./configure.sh
cd android
./gradlew -P${{ matrix.arch }} assemble${{ matrix.flavor }}
- name: Upload ${{ matrix.flavor }} apk