diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c84886521..e4399a121 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -4,9 +4,6 @@ name: Build & Test on: pull_request: push: - branches: - - develop - - master jobs: Linux: @@ -32,7 +29,13 @@ jobs: - "quay.io/centos/centos:stream10" - "ubuntu:24.04" on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - image: "debian:unstable" build_system: CMake @@ -220,7 +223,13 @@ jobs: compiler: - LLVM on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - os: macos-26 build_system: CMake @@ -283,7 +292,13 @@ jobs: compiler: - LLVM on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - freebsd_release: 15.1 build_system: CMake @@ -354,7 +369,13 @@ jobs: compiler: - LLVM on_default_branch: - - ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') || contains(github.ref, 'CI') }} + - >- + ${{ + github.event_name == 'pull_request' || + github.ref_name == 'master' || + github.ref_name == 'develop' || + contains(github.ref_name, 'CI') + }} include: - openbsd_release: "8.0" build_system: CMake diff --git a/.github/workflows/flawfinder-analysis.yml b/.github/workflows/flawfinder-analysis.yml index 059d70f66..1591f2933 100644 --- a/.github/workflows/flawfinder-analysis.yml +++ b/.github/workflows/flawfinder-analysis.yml @@ -7,6 +7,7 @@ on: branches: - develop - master + - "*CI*" jobs: flawfinder: diff --git a/.github/workflows/install-package-and-test.yml b/.github/workflows/install-package-and-test.yml index 6befa3dec..29efc0366 100644 --- a/.github/workflows/install-package-and-test.yml +++ b/.github/workflows/install-package-and-test.yml @@ -47,8 +47,8 @@ jobs: mkdir -p /usr/share/renderd cp -av utils/example-map /usr/share/renderd/ cp -av etc/apache2/renderd-example-map.conf /etc/apache2/sites-available/renderd-example-map.conf - MAPNIK_INPUT=$(find /usr -type d -name input | grep mapnik) - sed -i "s#/usr/lib/mapnik/3.1/input#${MAPNIK_INPUT}#g" /etc/renderd.conf + MAPNIK_INPUT=$(find /usr -mindepth 1 -type d -name input | grep mapnik) + sed -i "s#plugins_dir=.*#plugins_dir=${MAPNIK_INPUT}#g" /etc/renderd.conf printf ' [example-map] URI=/tiles/renderd-example diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fbbb8c508..5db9ca5f9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,10 @@ name: Lint on: pull_request: push: + branches: + - develop + - master + - "*CI*" jobs: clang-format: diff --git a/.github/workflows/sanitizers-and-warnings.yml b/.github/workflows/sanitizers-and-warnings.yml index 0acb04472..a197032bd 100644 --- a/.github/workflows/sanitizers-and-warnings.yml +++ b/.github/workflows/sanitizers-and-warnings.yml @@ -7,6 +7,7 @@ on: branches: - develop - master + - "*CI*" jobs: Warnings: @@ -63,7 +64,8 @@ jobs: include: - sanitizers: address,undefined name: ASan + UBSan - # Includes the Apache/renderd integration tests (the ASan runtime is preloaded into httpd) + # Includes the Apache/renderd integration tests (the ASan runtime is preloaded into httpd), + # excluding cleanup tests that would delete `build/tests/logs` before it can be checked below test_options: --exclude-regex 'clear_dirs_.+|remove_tile_.+' --output-on-failure - sanitizers: thread name: TSan @@ -89,11 +91,6 @@ jobs: - name: Install dependencies uses: ./.github/actions/dependencies/install - # Unlike in containers, installing the packages on the host starts their system services, - # whose default ports (e.g. memcached on 11211) collide with the test services - - name: Stop system `apache2` & `memcached` services - run: sudo systemctl stop apache2 memcached || true - - name: Build `mod_tile` uses: ./.github/actions/cmake/build diff --git a/docker/debian/Dockerfile.autotools b/docker/debian/Dockerfile.autotools index bfae9ee90..a05cee986 100644 --- a/docker/debian/Dockerfile.autotools +++ b/docker/debian/Dockerfile.autotools @@ -94,8 +94,8 @@ COPY --from=builder \ ## Fix mapnik directories SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN sed \ - --expression "s#/usr/lib/mapnik/3.1/input#$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ - --expression "s#/usr/share/fonts/truetype#/usr/share/fonts#g" \ + --expression "s#plugins_dir=.*#plugins_dir=$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ + --expression "s#font_dir=.*#font_dir=/usr/share/fonts#g" \ /usr/local/etc/renderd.conf > /etc/renderd.conf SHELL ["/bin/sh", "-c"] diff --git a/docker/ubuntu/Dockerfile.autotools b/docker/ubuntu/Dockerfile.autotools index 3453fc7d8..d496d143c 100644 --- a/docker/ubuntu/Dockerfile.autotools +++ b/docker/ubuntu/Dockerfile.autotools @@ -88,8 +88,8 @@ COPY --from=builder \ ## Fix mapnik directories SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN sed \ - --expression "s#/usr/lib/mapnik/3.1/input#$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ - --expression "s#/usr/share/fonts/truetype#/usr/share/fonts#g" \ + --expression "s#plugins_dir=.*#plugins_dir=$(find /usr -mindepth 1 -type d -name input | grep mapnik)#g" \ + --expression "s#font_dir=.*#font_dir=/usr/share/fonts#g" \ /usr/local/etc/renderd.conf > /etc/renderd.conf SHELL ["/bin/sh", "-c"]