[CI] Add generate symbols tasks inside CI and create Dockerfile

Signed-off-by: jeanbaptisteC <jeanbaptistec@noreply.codeberg.org>
This commit is contained in:
Jean-Baptiste
2025-05-21 18:04:21 +02:00
committed by Konstantin Pastbin
parent 39059ec26d
commit dc2b3c50dd
4 changed files with 53 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
flavor: [WebDebug, FdroidDebug] flavor: [WebBeta, FdroidDebug]
include: include:
- flavor: WebDebug - flavor: WebDebug
arch: arm64 arch: arm64
@@ -53,7 +53,19 @@ jobs:
shell: bash shell: bash
run: | run: |
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y ninja-build sudo 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 \
zlib1g-dev
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -68,11 +80,9 @@ jobs:
shell: bash shell: bash
run: ./configure.sh run: ./configure.sh
- name: Download MWM files - name: Generate symbols
shell: bash shell: bash
run: | run: ./tools/unix/generate_symbols.sh
wget https://cdn.comaps.app/maps/latest/World.mwm -P ./data/
wget https://cdn.comaps.app/maps/latest/WorldCoasts.mwm -P ./data/
- name: Configure ccache - name: Configure ccache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2

View File

@@ -14,7 +14,7 @@ jobs:
LANG: en_US.UTF-8 # Fastlane complains that the terminal is using ASCII. LANG: en_US.UTF-8 # Fastlane complains that the terminal is using ASCII.
LANGUAGE: en_US.UTF-8 LANGUAGE: en_US.UTF-8
LC_ALL: en_US.UTF-8 LC_ALL: en_US.UTF-8
TEST_RESULTS_BUNDLE_NAME: OMaps-Test-Results TEST_RESULTS_BUNDLE_NAME: CoMaps-Test-Results
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -25,6 +25,12 @@ jobs:
cancel-in-progress: true cancel-in-progress: true
steps: steps:
- name: Install dependencies
run: |
brew install qt \
freetype \
harfbuzz \
optipng
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -42,6 +48,10 @@ jobs:
wget https://cdn.comaps.app/maps/latest/World.mwm -P ./data/ wget https://cdn.comaps.app/maps/latest/World.mwm -P ./data/
wget https://cdn.comaps.app/maps/latest/WorldCoasts.mwm -P ./data/ wget https://cdn.comaps.app/maps/latest/WorldCoasts.mwm -P ./data/
- name: Generate symbols
shell: bash
run: ./tools/unix/generate_symbols.sh
- name: Configure XCode cache - name: Configure XCode cache
uses: irgaly/xcode-cache@v1 uses: irgaly/xcode-cache@v1
with: with:

23
android/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM ubuntu:latest
ENV TZ=Etc/UTC
ENV QT_QPA_PLATFORM=offscreen
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
qt6-base-dev \
qt6-svg-dev \
qt6-positioning-dev \
libicu-dev \
libfreetype-dev \
libharfbuzz-dev \
libxrandr-dev \
libxinerama-dev \
libxcursor-dev \
libxi-dev \
optipng
WORKDIR /root/comaps
RUN ./configure.sh
RUN ./tools/unix/generate_symbols.sh
CMD ./gradlew -Parm64 assembleFdroidDebug

View File

@@ -17,6 +17,9 @@ fi
# Prevent python from generating compiled *.pyc files # Prevent python from generating compiled *.pyc files
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
# Add env var to disable renderer on a display (renderer not working into a Github container)
export QT_QPA_PLATFORM=offscreen
OMIM_PATH="${OMIM_PATH:-$(cd "$(dirname "$0")/../.."; pwd)}" OMIM_PATH="${OMIM_PATH:-$(cd "$(dirname "$0")/../.."; pwd)}"
OUT_PATH="$OMIM_PATH/out/release" OUT_PATH="$OMIM_PATH/out/release"
SKIN_GENERATOR="${SKIN_GENERATOR:-$OUT_PATH/skin_generator_tool}" SKIN_GENERATOR="${SKIN_GENERATOR:-$OUT_PATH/skin_generator_tool}"