Skip to content
Open
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
35 changes: 28 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ name: Build & Test
on:
pull_request:
push:
branches:
- develop
- master

jobs:
Linux:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/flawfinder-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- develop
- master
- "*CI*"

jobs:
flawfinder:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/install-package-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: Lint
on:
pull_request:
push:
branches:
- develop
- master
- "*CI*"

jobs:
clang-format:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/sanitizers-and-warnings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- develop
- master
- "*CI*"

jobs:
Warnings:
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docker/debian/Dockerfile.autotools
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
4 changes: 2 additions & 2 deletions docker/ubuntu/Dockerfile.autotools
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
Loading