Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Build for Debian

# manually triggered workflow

on:
workflow_dispatch:
push:
pull_request:


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
name: Debian postgis
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
postgres: [14, 15, 16, 17, 18]
postgis: [3.5, 3.6]
include:
- postgres: 18
pqxx: '7.10'
- postgres: 17
pqxx: '6.4'
- postgres: 16
pqxx: '6.4'
- postgres: 15
pqxx: '6.4'
- postgres: 14
pqxx: '6.4'
exclude:
- postgres: 18
postgis: 3.5
- postgres: 17
postgis: 3.6
- postgres: 16
postgis: 3.6
- postgres: 15
postgis: 3.6
- postgres: 14
postgis: 3.6

container:
image: postgis/postgis:${{ matrix.postgres }}-${{ matrix.postgis }}

steps:
- uses: actions/checkout@v6

- name: Install dependencies
run: |
apt update
apt install -y \
build-essential \
cmake \
libboost-program-options-dev \
libpqxx-dev \
libpqxx-${{ matrix.pqxx }} \
libexpat1 \
libexpat-dev \
libosmium2-dev \
zlib1g-dev

- name: Configure compiler
run: |
mkdir build
cd build
cmake ..

- name: Build
run: |
cd build
make -j $(nproc)
make install