mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[CI] Add generate symbols tasks inside CI and create Dockerfile
Signed-off-by: jeanbaptisteC <jeanbaptistec@noreply.codeberg.org>
This commit is contained in:
committed by
Konstantin Pastbin
parent
39059ec26d
commit
dc2b3c50dd
22
.github/workflows/android-check.yaml
vendored
22
.github/workflows/android-check.yaml
vendored
@@ -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
|
||||||
|
|||||||
12
.github/workflows/ios-check.yaml
vendored
12
.github/workflows/ios-check.yaml
vendored
@@ -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
23
android/Dockerfile
Normal 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
|
||||||
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user