-
Notifications
You must be signed in to change notification settings - Fork 17
74 lines (67 loc) · 2.07 KB
/
build_options_test.yml
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
name: Build Tests
on: [push]
concurrency:
group: ci-${{github.ref}}-build-options-tests
cancel-in-progress: true
jobs:
build_test:
if: github.repository == 'MerginMaps/geodiff'
runs-on: ubuntu-latest
steps:
- name: Checkout Geodiff
uses: actions/checkout@v3
- name: install deps
run: |
sudo apt-get update
sudo apt-get install libpq-dev
sudo apt-get install libc6-dbg gdb
sudo apt-get install postgresql-14 postgresql-contrib-14 postgresql-14-postgis-3 postgresql-common postgis
- name: build geodiff static only
run: |
mkdir -p build_static_only
cd build_static_only
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTS=OFF \
-DWITH_POSTGRESQL=FALSE \
-DBUILD_STATIC=TRUE \
-DBUILD_SHARED=FALSE \
../geodiff
make -j`nproc`
- name: build geodiff shared only
run: |
mkdir -p build_shared_only
cd build_shared_only
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTS=OFF \
-DWITH_POSTGRESQL=FALSE \
-DBUILD_STATIC=FALSE \
-DBUILD_SHARED=TRUE \
../geodiff
make -j`nproc`
- name: build geodiff shared pg
run: |
mkdir -p build_shared_pg
cd build_shared_pg
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTS=OFF \
-DWITH_POSTGRESQL=TRUE \
-DBUILD_STATIC=TRUE \
-DBUILD_SHARED=FALSE \
../geodiff
make -j`nproc`
- name: build geodiff tools
run: |
mkdir -p build_shared_pg
cd build_shared_pg
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTS=OFF \
-DWITH_POSTGRESQL=FALSE \
-DBUILD_STATIC=FALSE \
-DBUILD_SHARED=FALSE \
-DBUILD_TOOLS=TRUE \
../geodiff
make -j`nproc`