forked from openstreetmap/mod_tile
-
Notifications
You must be signed in to change notification settings - Fork 0
144 lines (129 loc) · 3.91 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
---
name: Build & Test
on:
- pull_request
- push
jobs:
Linux:
name: >-
${{ matrix.image }}
(${{ matrix.build_system }})
(${{ matrix.compiler }})
${{ matrix.mapnik_latest && '(Latest Mapnik)' || '' }}
runs-on: ubuntu-latest
strategy:
matrix:
image:
- 'centos:7'
- 'debian:10'
- 'debian:11'
- 'debian:testing'
- 'fedora:36'
- 'fedora:37'
- 'fedora:rawhide'
- 'ubuntu:20.04'
build_system:
- CMake
compiler:
- GNU
mapnik_latest:
- false
on_default_branch:
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') }}
include:
- image: 'ubuntu:22.04'
build_system: Autotools
compiler: GNU
- image: 'ubuntu:22.04'
build_system: Autotools
compiler: LLVM
- image: 'ubuntu:22.04'
build_system: CMake
compiler: GNU
- image: 'ubuntu:22.04'
build_system: CMake
compiler: LLVM
- image: 'debian:11'
build_system: CMake
compiler: GNU
mapnik_latest: true
- image: 'ubuntu:22.04'
build_system: CMake
compiler: GNU
mapnik_latest: true
exclude:
- on_default_branch: false
fail-fast: false
container:
env:
BUILD_TYPE: Debug
CC: ${{ matrix.compiler == 'LLVM' && 'clang' || 'gcc' }}
CFLAGS: ${{ (matrix.build_system == 'CMake' && matrix.compiler == 'GNU') && '--coverage' || '' }}
CXX: ${{ matrix.compiler == 'LLVM' && 'clang++' || 'g++' }}
CXXFLAGS: ${{ (matrix.build_system == 'CMake' && matrix.compiler == 'GNU') && '--coverage' || '' }}
image: ${{ matrix.image }}
steps:
- name: Install `git` (Amazon Linux 2)
run: yum --assumeyes install git
if: matrix.image == 'amazonlinux:2'
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/dependencies/install
- name: Build `mod_tile`
uses: ./.github/actions/build
- name: Test `mod_tile`
uses: ./.github/actions/test
- name: Install `mod_tile`
uses: ./.github/actions/install
macOS:
env:
BUILD_TYPE: Release
CFLAGS: -Wno-implicit-function-declaration
LDFLAGS: -undefined dynamic_lookup
LIBRARY_PATH: /usr/local/lib
name: ${{ matrix.image }} (${{ matrix.build_system }}) (${{ matrix.compiler }})
runs-on: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
image:
- macos-11
build_system:
- CMake
compiler:
- LLVM
on_default_branch:
- ${{ contains(github.ref, 'master') || contains(github.ref, 'develop') }}
include:
- image: macos-12
build_system: Autotools
compiler: LLVM
- image: macos-12
build_system: CMake
compiler: LLVM
exclude:
- on_default_branch: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/dependencies/install
- name: Set ICU_ROOT
run: |
echo "ICU_ROOT=$(brew --prefix icu4c)" >> ${GITHUB_ENV}
- name: Build `mod_tile`
uses: ./.github/actions/build
- name: Test `mod_tile`
uses: ./.github/actions/test
- name: Install `mod_tile`
uses: ./.github/actions/install
FreeBSD:
if: contains(github.ref, 'master') || contains(github.ref, 'develop')
name: FreeBSD (CMake) (LLVM)
runs-on: macos-12
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies, Build, Test & Install `mod_tile`
uses: ./.github/actions/freebsd