Skip to content
Merged
Show file tree
Hide file tree
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
165 changes: 72 additions & 93 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ on: [ push, pull_request ]

jobs:

ubuntu20-pg96-gcc10-jit:
runs-on: ubuntu-20.04
ubuntu22-pg11-gcc10-jit:
runs-on: ubuntu-22.04

env:
CC: gcc-10
CXX: g++-10
EXTRA_FLAGS: -Wno-unused-but-set-parameter # workaround for GCC bug
LUA_VERSION: 5.3
LUAJIT_OPTION: ON
POSTGRESQL_VERSION: 9.6
POSTGIS_VERSION: 2.5
POSTGRESQL_VERSION: 11
POSTGIS_VERSION: 3
BUILD_TYPE: Release
PSYCOPG: 2

Expand All @@ -24,16 +23,16 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu20-pg96-clang10-jit:
runs-on: ubuntu-20.04
ubuntu22-pg11-clang13-jit:
runs-on: ubuntu-22.04

env:
CC: clang-10
CXX: clang++-10
CC: clang-13
CXX: clang++-13
LUA_VERSION: 5.3
LUAJIT_OPTION: ON
POSTGRESQL_VERSION: 9.6
POSTGIS_VERSION: 2.5
POSTGRESQL_VERSION: 11
POSTGIS_VERSION: 3
BUILD_TYPE: Release
PSYCOPG: 2

Expand All @@ -43,16 +42,15 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu20-pg10-gcc10:
runs-on: ubuntu-20.04
ubuntu22-pg11-gcc10:
runs-on: ubuntu-22.04

env:
CC: gcc-10
CXX: g++-10
EXTRA_FLAGS: -Wno-unused-but-set-parameter # workaround for GCC bug
LUA_VERSION: 5.3
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 10
POSTGRESQL_VERSION: 11
POSTGIS_VERSION: 3
BUILD_TYPE: Debug
PSYCOPG: 2
Expand All @@ -64,16 +62,16 @@ jobs:
- uses: ./.github/actions/build-and-test


ubuntu20-pg11-clang10:
runs-on: ubuntu-20.04
ubuntu22-pg11-clang13:
runs-on: ubuntu-22.04

env:
CC: clang-10
CXX: clang++-10
CC: clang-13
CXX: clang++-13
LUA_VERSION: 5.3
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 11
POSTGIS_VERSION: 2.5
POSTGIS_VERSION: 3
BUILD_TYPE: Debug
PSYCOPG: 2

Expand All @@ -83,16 +81,16 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu20-pg13-gcc10-jit:
runs-on: ubuntu-20.04
ubuntu22-pg13-gcc11-jit:
runs-on: ubuntu-22.04

env:
CC: gcc-10
CXX: g++-10
CC: gcc-11
CXX: g++-11
LUA_VERSION: 5.3
LUAJIT_OPTION: ON
POSTGRESQL_VERSION: 13
POSTGIS_VERSION: 2.5
POSTGIS_VERSION: 3
BUILD_TYPE: Debug
PSYCOPG: 2

Expand All @@ -103,15 +101,15 @@ jobs:
- uses: ./.github/actions/build-and-test


ubuntu20-pg15-clang10-jit:
runs-on: ubuntu-20.04
ubuntu22-pg12-clang14-jit:
runs-on: ubuntu-22.04

env:
CC: clang-10
CXX: clang++-10
CC: clang-14
CXX: clang++-14
LUA_VERSION: 5.3
LUAJIT_OPTION: ON
POSTGRESQL_VERSION: 15
POSTGRESQL_VERSION: 12
POSTGIS_VERSION: 3
BUILD_TYPE: Debug
PSYCOPG: 2
Expand All @@ -122,15 +120,15 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu20-pg15-clang10-noproj:
runs-on: ubuntu-20.04
ubuntu22-pg12-clang15-noproj:
runs-on: ubuntu-22.04

env:
CC: clang-10
CXX: clang++-10
CC: clang-15
CXX: clang++-15
LUA_VERSION: 5.3
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 15
POSTGRESQL_VERSION: 12
POSTGIS_VERSION: 3
WITH_PROJ: OFF
BUILD_TYPE: Debug
Expand All @@ -142,12 +140,12 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu20-pg16-clang10:
runs-on: ubuntu-20.04
ubuntu22-pg16-clang15:
runs-on: ubuntu-22.04

env:
CC: clang-10
CXX: clang++-10
CC: clang-15
CXX: clang++-15
LUA_VERSION: 5.3
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 16
Expand All @@ -161,16 +159,17 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu20-pg13-gcc10-release:
runs-on: ubuntu-20.04
ubuntu22-pg13-gcc12-release:
runs-on: ubuntu-22.04

env:
CC: gcc-10
CXX: g++-10
CC: gcc-12
CXX: g++-12
EXTRA_FLAGS: -Wno-stringop-overread
LUA_VERSION: 5.3
LUAJIT_OPTION: ON
POSTGRESQL_VERSION: 13
POSTGIS_VERSION: 2.5
POSTGIS_VERSION: 3
BUILD_TYPE: Release
PSYCOPG: 2

Expand All @@ -180,15 +179,15 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu22-pg16-clang14-jit:
runs-on: ubuntu-22.04
ubuntu24-pg14-clang16-jit:
runs-on: ubuntu-24.04

env:
CC: clang-14
CXX: clang++-14
CC: clang-16
CXX: clang++-16
LUA_VERSION: 5.4
LUAJIT_OPTION: ON
POSTGRESQL_VERSION: 16
POSTGRESQL_VERSION: 14
POSTGIS_VERSION: 3
BUILD_TYPE: Debug
PSYCOPG: 2
Expand All @@ -199,15 +198,15 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu22-pg16-clang14-proj:
runs-on: ubuntu-22.04
ubuntu24-pg14-clang17-proj:
runs-on: ubuntu-24.04

env:
CC: clang-14
CXX: clang++-14
CC: clang-17
CXX: clang++-17
LUA_VERSION: 5.4
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 16
POSTGRESQL_VERSION: 14
POSTGIS_VERSION: 3
BUILD_TYPE: Debug
PSYCOPG: 2
Expand All @@ -218,15 +217,15 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu22-pg16-clang14-noproj:
runs-on: ubuntu-22.04
ubuntu24-pg15-clang17-noproj:
runs-on: ubuntu-24.04

env:
CC: clang-14
CXX: clang++-14
CC: clang-17
CXX: clang++-17
LUA_VERSION: 5.3
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 16
POSTGRESQL_VERSION: 15
POSTGIS_VERSION: 3
WITH_PROJ: OFF
BUILD_TYPE: Debug
Expand All @@ -238,12 +237,12 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu22-pg15-clang14:
runs-on: ubuntu-22.04
ubuntu24-pg15-clang18:
runs-on: ubuntu-24.04

env:
CC: clang-14
CXX: clang++-14
CC: clang-18
CXX: clang++-18
LUA_VERSION: 5.4
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 15
Expand All @@ -257,8 +256,8 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu22-pg16-gcc12-release:
runs-on: ubuntu-22.04
ubuntu24-pg16-gcc12-release:
runs-on: ubuntu-24.04

env:
CC: gcc-12
Expand All @@ -277,15 +276,15 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu22-pg16-clang15-cpp20:
runs-on: ubuntu-22.04
ubuntu24-pg17-clang16-cpp20:
runs-on: ubuntu-24.04

env:
CC: clang-15
CXX: clang++-15
CC: clang-16
CXX: clang++-16
LUA_VERSION: 5.3
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 16
POSTGRESQL_VERSION: 17
POSTGIS_VERSION: 3
CPP_VERSION: 20
BUILD_TYPE: Debug
Expand All @@ -297,15 +296,15 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu22-pg16-gcc12-cpp20:
runs-on: ubuntu-22.04
ubuntu24-pg17-gcc12-cpp20:
runs-on: ubuntu-24.04

env:
CC: gcc-12
CXX: g++-12
LUA_VERSION: 5.3
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 16
POSTGRESQL_VERSION: 17
POSTGIS_VERSION: 3
CPP_VERSION: 20
BUILD_TYPE: Debug
Expand All @@ -317,26 +316,6 @@ jobs:
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

ubuntu24-pg16-gcc14:
runs-on: ubuntu-24.04

env:
CC: gcc-14
CXX: g++-14
LUA_VERSION: 5.4
LUAJIT_OPTION: OFF
POSTGRESQL_VERSION: 16
POSTGIS_VERSION: 3
BUILD_TYPE: Debug
PSYCOPG: 3
PIP_OPTION: --break-system-packages

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/ubuntu-prerequisites
- uses: ./.github/actions/linux-cmake
- uses: ./.github/actions/build-and-test

windows:
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [ push, pull_request ]

jobs:
ubuntu-test-install:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

strategy:
matrix:
Expand All @@ -19,7 +19,7 @@ jobs:

env:
LUA_VERSION: 5.3
POSTGRESQL_VERSION: 14
POSTGRESQL_VERSION: 16
POSTGIS_VERSION: 3
BUILD_TYPE: Release
CXXFLAGS: -pedantic -Wextra -Wno-stringop-overread -Werror
Expand Down
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

cmake_minimum_required(VERSION 3.8.0)
cmake_minimum_required(VERSION 3.10.0)

project(osm2pgsql VERSION 2.0.1 LANGUAGES CXX C)

Expand Down Expand Up @@ -64,10 +64,10 @@ if (NOT WIN32 AND NOT APPLE)
set(PostgreSQL_TYPE_INCLUDE_DIR /usr/include)
endif()

set(MINIMUM_POSTGRESQL_SERVER_VERSION "9.6")
set(MINIMUM_POSTGRESQL_SERVER_VERSION_NUM "90600")
set(MINIMUM_POSTGRESQL_SERVER_VERSION "11")
set(MINIMUM_POSTGRESQL_SERVER_VERSION_NUM "110000")

set(PostgreSQL_ADDITIONAL_VERSIONS "17" "16" "15" "14" "13" "12" "11" "10" "9.6")
set(PostgreSQL_ADDITIONAL_VERSIONS "17" "16" "15" "14" "13" "12" "11")

#############################################################
# Version
Expand Down
Loading
Loading