Skip to content

Commit 8c6230b

Browse files
committed
Add Debian CI
1 parent a988477 commit 8c6230b

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

.github/workflows/debian.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Build for Debian
2+
3+
# manually triggered workflow
4+
5+
on:
6+
workflow_dispatch:
7+
push:
8+
pull_request:
9+
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
build:
20+
name: Debian postgis
21+
runs-on: ubuntu-latest
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
postgres: [14, 15, 16, 17, 18]
27+
postgis: [3.5, 3.6]
28+
include:
29+
- postgres: 18
30+
pqxx: '7.10'
31+
- postgres: 17
32+
pqxx: '6.4'
33+
- postgres: 16
34+
pqxx: '6.4'
35+
- postgres: 15
36+
pqxx: '6.4'
37+
- postgres: 14
38+
pqxx: '6.4'
39+
exclude:
40+
- postgres: 18
41+
postgis: 3.5
42+
- postgres: 17
43+
postgis: 3.6
44+
- postgres: 16
45+
postgis: 3.6
46+
- postgres: 15
47+
postgis: 3.6
48+
- postgres: 14
49+
postgis: 3.6
50+
51+
container:
52+
image: postgis/postgis:${{ matrix.postgres }}-${{ matrix.postgis }}
53+
54+
steps:
55+
- uses: actions/checkout@v6
56+
57+
- name: Install dependencies
58+
run: |
59+
apt update
60+
apt install -y \
61+
build-essential \
62+
cmake \
63+
libboost-program-options-dev \
64+
libpqxx-dev \
65+
libpqxx-${{ matrix.pqxx }} \
66+
libexpat1 \
67+
libexpat-dev \
68+
libosmium2-dev \
69+
zlib1g-dev
70+
71+
- name: Configure compiler
72+
run: |
73+
mkdir build
74+
cd build
75+
cmake ..
76+
77+
# Build osmium tool
78+
cd ../tools/osmium
79+
mkdir build
80+
cd build
81+
cmake ..
82+
83+
- name: Build
84+
run: |
85+
cd build
86+
make -j $(nproc)
87+
make install
88+
89+
# Build osmium tool
90+
cd ../tools/osmium/build
91+
make -j $(nproc)
92+
make install

0 commit comments

Comments
 (0)