gh-actions: ci: old PHP versions need json enabled
[m6w6/ext-json_post] / .github / workflows / ci.yml
1 # generated file; do not edit!
2
3 name: ci
4 on:
5 workflow_dispatch:
6 push:
7 pull_request:
8
9 jobs:
10 old-matrix-0:
11 name: old-matrix-0
12 env:
13 PHP: "5.6"
14 enable_debug: "yes"
15 enable_maintainer_zts: "yes"
16 enable_json: "yes"
17 runs-on: ubuntu-20.04
18 steps:
19 - uses: actions/checkout@v2
20 with:
21 submodules: true
22 - name: Install
23 run: |
24 sudo apt-get install -y \
25 php-cli \
26 php-pear \
27 re2c
28 - name: Prepare
29 run: |
30 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
31 - name: Build
32 run: |
33 make -f scripts/ci/Makefile ext PECL=json_post
34 - name: Test
35 run: |
36 make -f scripts/ci/Makefile test
37
38 old-matrix-1:
39 name: old-matrix-1
40 env:
41 PHP: "7.0"
42 enable_debug: "yes"
43 enable_maintainer_zts: "yes"
44 enable_json: "yes"
45 runs-on: ubuntu-20.04
46 steps:
47 - uses: actions/checkout@v2
48 with:
49 submodules: true
50 - name: Install
51 run: |
52 sudo apt-get install -y \
53 php-cli \
54 php-pear \
55 re2c
56 - name: Prepare
57 run: |
58 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
59 - name: Build
60 run: |
61 make -f scripts/ci/Makefile ext PECL=json_post
62 - name: Test
63 run: |
64 make -f scripts/ci/Makefile test
65
66 old-matrix-2:
67 name: old-matrix-2
68 env:
69 PHP: "7.1"
70 enable_debug: "yes"
71 enable_maintainer_zts: "yes"
72 enable_json: "yes"
73 runs-on: ubuntu-20.04
74 steps:
75 - uses: actions/checkout@v2
76 with:
77 submodules: true
78 - name: Install
79 run: |
80 sudo apt-get install -y \
81 php-cli \
82 php-pear \
83 re2c
84 - name: Prepare
85 run: |
86 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
87 - name: Build
88 run: |
89 make -f scripts/ci/Makefile ext PECL=json_post
90 - name: Test
91 run: |
92 make -f scripts/ci/Makefile test
93
94 old-matrix-3:
95 name: old-matrix-3
96 env:
97 PHP: "7.2"
98 enable_debug: "yes"
99 enable_maintainer_zts: "yes"
100 enable_json: "yes"
101 runs-on: ubuntu-20.04
102 steps:
103 - uses: actions/checkout@v2
104 with:
105 submodules: true
106 - name: Install
107 run: |
108 sudo apt-get install -y \
109 php-cli \
110 php-pear \
111 re2c
112 - name: Prepare
113 run: |
114 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
115 - name: Build
116 run: |
117 make -f scripts/ci/Makefile ext PECL=json_post
118 - name: Test
119 run: |
120 make -f scripts/ci/Makefile test
121
122 old-matrix-4:
123 name: old-matrix-4
124 env:
125 PHP: "7.3"
126 enable_debug: "yes"
127 enable_maintainer_zts: "yes"
128 enable_json: "yes"
129 runs-on: ubuntu-20.04
130 steps:
131 - uses: actions/checkout@v2
132 with:
133 submodules: true
134 - name: Install
135 run: |
136 sudo apt-get install -y \
137 php-cli \
138 php-pear \
139 re2c
140 - name: Prepare
141 run: |
142 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
143 - name: Build
144 run: |
145 make -f scripts/ci/Makefile ext PECL=json_post
146 - name: Test
147 run: |
148 make -f scripts/ci/Makefile test
149
150 old-matrix-5:
151 name: old-matrix-5
152 env:
153 PHP: "7.4"
154 enable_debug: "yes"
155 enable_maintainer_zts: "yes"
156 enable_json: "yes"
157 runs-on: ubuntu-20.04
158 steps:
159 - uses: actions/checkout@v2
160 with:
161 submodules: true
162 - name: Install
163 run: |
164 sudo apt-get install -y \
165 php-cli \
166 php-pear \
167 re2c
168 - name: Prepare
169 run: |
170 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
171 - name: Build
172 run: |
173 make -f scripts/ci/Makefile ext PECL=json_post
174 - name: Test
175 run: |
176 make -f scripts/ci/Makefile test
177
178 master-0:
179 name: master-0
180 continue-on-error: true
181 env:
182 PHP: "master"
183 enable_debug: "yes"
184 enable_zts: "yes"
185 runs-on: ubuntu-20.04
186 steps:
187 - uses: actions/checkout@v2
188 with:
189 submodules: true
190 - name: Install
191 run: |
192 sudo apt-get install -y \
193 php-cli \
194 php-pear \
195 re2c
196 - name: Prepare
197 run: |
198 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
199 - name: Build
200 run: |
201 make -f scripts/ci/Makefile ext PECL=json_post
202 - name: Test
203 run: |
204 make -f scripts/ci/Makefile test
205
206 cur-dbg-zts-0:
207 name: cur-dbg-zts-0
208 env:
209 PHP: "8.0"
210 enable_debug: "yes"
211 enable_zts: "yes"
212 runs-on: ubuntu-20.04
213 steps:
214 - uses: actions/checkout@v2
215 with:
216 submodules: true
217 - name: Install
218 run: |
219 sudo apt-get install -y \
220 php-cli \
221 php-pear \
222 re2c
223 - name: Prepare
224 run: |
225 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
226 - name: Build
227 run: |
228 make -f scripts/ci/Makefile ext PECL=json_post
229 - name: Test
230 run: |
231 make -f scripts/ci/Makefile test
232
233 cur-dbg-zts-1:
234 name: cur-dbg-zts-1
235 env:
236 PHP: "8.0"
237 enable_debug: "no"
238 enable_zts: "yes"
239 runs-on: ubuntu-20.04
240 steps:
241 - uses: actions/checkout@v2
242 with:
243 submodules: true
244 - name: Install
245 run: |
246 sudo apt-get install -y \
247 php-cli \
248 php-pear \
249 re2c
250 - name: Prepare
251 run: |
252 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
253 - name: Build
254 run: |
255 make -f scripts/ci/Makefile ext PECL=json_post
256 - name: Test
257 run: |
258 make -f scripts/ci/Makefile test
259
260 cur-dbg-zts-2:
261 name: cur-dbg-zts-2
262 env:
263 PHP: "8.0"
264 enable_debug: "yes"
265 enable_zts: "no"
266 runs-on: ubuntu-20.04
267 steps:
268 - uses: actions/checkout@v2
269 with:
270 submodules: true
271 - name: Install
272 run: |
273 sudo apt-get install -y \
274 php-cli \
275 php-pear \
276 re2c
277 - name: Prepare
278 run: |
279 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
280 - name: Build
281 run: |
282 make -f scripts/ci/Makefile ext PECL=json_post
283 - name: Test
284 run: |
285 make -f scripts/ci/Makefile test
286
287 cur-dbg-zts-3:
288 name: cur-dbg-zts-3
289 env:
290 PHP: "8.0"
291 enable_debug: "no"
292 enable_zts: "no"
293 runs-on: ubuntu-20.04
294 steps:
295 - uses: actions/checkout@v2
296 with:
297 submodules: true
298 - name: Install
299 run: |
300 sudo apt-get install -y \
301 php-cli \
302 php-pear \
303 re2c
304 - name: Prepare
305 run: |
306 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
307 - name: Build
308 run: |
309 make -f scripts/ci/Makefile ext PECL=json_post
310 - name: Test
311 run: |
312 make -f scripts/ci/Makefile test
313
314 cur-cov-0:
315 name: cur-cov-0
316 env:
317 CFLAGS: "-O0 -g --coverage"
318 CXXFLAGS: "-O0 -g --coverage"
319 PHP: "8.0"
320 runs-on: ubuntu-20.04
321 steps:
322 - uses: actions/checkout@v2
323 with:
324 submodules: true
325 - name: Install
326 run: |
327 sudo apt-get install -y \
328 php-cli \
329 php-pear \
330 re2c
331 - name: Prepare
332 run: |
333 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
334 - name: Build
335 run: |
336 make -f scripts/ci/Makefile ext PECL=json_post
337 - name: Test
338 run: |
339 make -f scripts/ci/Makefile test
340 - name: Coverage
341 if: success()
342 run: |
343 cd .libs
344 bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
345