This repository was archived by the owner on Nov 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
90 lines (76 loc) · 2.36 KB
/
linux.yml
File metadata and controls
90 lines (76 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Linux Build
on: [push]
env:
TEST_MERGIN_URL: https://test.dev.merginmaps.com/
TEST_API_USERNAME: test_inputapp
TEST_API_PASSWORD: ${{ secrets.MERGINTEST_API_PASSWORD }}
QT_VERSION: '5.14.2'
CACHE_VERSION: 2
GEODIFF_VERSION: 1.0.6
INPUT_VERSION: 'master'
concurrency:
group: ci-${{github.ref}}-linux
cancel-in-progress: true
jobs:
linux_build:
if: ( github.repository == 'MerginMaps/mergin-cpp-client' )
runs-on: ubuntu-latest
steps:
- name: Checkout mergin-cpp-client
uses: actions/checkout@v2
with:
path: mergin-cpp-client
- name: Checkout input
uses: actions/checkout@v2
with:
ref: ${{ env.INPUT_VERSION }}
repository: MerginMaps/input
path: input
- name: Checkout geodiff
uses: actions/checkout@v2
with:
ref: ${{ env.GEODIFF_VERSION }}
repository: MerginMaps/geodiff
path: geodiff
- name: Install Deps
run: |
sudo apt-get install cmake
- name: Cache Qt
id: cache-qt
uses: pat-s/always-upload-cache@v2.1.5
with:
path: ${{ github.workspace }}/Qt
key: ${{ runner.os }}-QtCache-v1-${{ env.QT_VERSION }}-${{ env.CACHE_VERSION }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ env.QT_VERSION }}
setup-python: 'false'
dir: ${{ github.workspace }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: build geodiff
run: |
mkdir -p build-geodiff
cd build-geodiff
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_TESTS=FALSE \
-DBUILD_STATIC=ON \
-DBUILD_SHARED=OFF \
../geodiff/geodiff
make
sudo make install
- name: build mergin-cpp-client
run: |
cp mergin-cpp-client/scripts/ci/config.pri mergin-cpp-client/src/config.pri
mkdir -p build-mergin-cpp-client
cd build-mergin-cpp-client
$Qt5_DIR/bin/qmake \
'QMAKE_CFLAGS_ISYSTEM=-I' \
../mergin-cpp-client/src/client.pro \
CONFIG+=debug
make
- name: run tests
run: |
cd build-mergin-cpp-client/
$(pwd)/../mergin-cpp-client/tests.bash $(pwd)/mergin