gh-actions: fix ci
[m6w6/ext-http] / .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: "7.0"
14 enable_debug: "yes"
15 enable_maintainer_zts: "yes"
16 enable_json: "yes"
17 enable_hash: "yes"
18 enable_iconv: "yes"
19 runs-on: ubuntu-20.04
20 steps:
21 - uses: actions/checkout@v2
22 with:
23 submodules: true
24 - name: Install
25 run: |
26 sudo apt-get install -y \
27 php-cli \
28 php-pear \
29 libcurl4-openssl-dev \
30 libevent-dev \
31 libidn11-dev \
32 libidn2-0-dev \
33 libicu-dev \
34 libevent-dev \
35 libbrotli-dev \
36 re2c
37 - name: Prepare
38 run: |
39 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
40 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
41 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
42 if test -n "$PECLs"; then
43 IFS=$','
44 for pecl in $PECLs; do
45 make -f scripts/ci/Makefile pecl PECL=$pecl
46 done
47 unset IFS
48 fi
49
50 - name: Build
51 run: |
52 make -f scripts/ci/Makefile ext PECL=http
53 - name: Test
54 run: |
55 make -f scripts/ci/Makefile test
56
57 old-matrix-1:
58 name: old-matrix-1
59 env:
60 PHP: "7.1"
61 enable_debug: "yes"
62 enable_maintainer_zts: "yes"
63 enable_json: "yes"
64 enable_hash: "yes"
65 enable_iconv: "yes"
66 runs-on: ubuntu-20.04
67 steps:
68 - uses: actions/checkout@v2
69 with:
70 submodules: true
71 - name: Install
72 run: |
73 sudo apt-get install -y \
74 php-cli \
75 php-pear \
76 libcurl4-openssl-dev \
77 libevent-dev \
78 libidn11-dev \
79 libidn2-0-dev \
80 libicu-dev \
81 libevent-dev \
82 libbrotli-dev \
83 re2c
84 - name: Prepare
85 run: |
86 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
87 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
88 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
89 if test -n "$PECLs"; then
90 IFS=$','
91 for pecl in $PECLs; do
92 make -f scripts/ci/Makefile pecl PECL=$pecl
93 done
94 unset IFS
95 fi
96
97 - name: Build
98 run: |
99 make -f scripts/ci/Makefile ext PECL=http
100 - name: Test
101 run: |
102 make -f scripts/ci/Makefile test
103
104 old-matrix-2:
105 name: old-matrix-2
106 env:
107 PHP: "7.2"
108 enable_debug: "yes"
109 enable_maintainer_zts: "yes"
110 enable_json: "yes"
111 enable_hash: "yes"
112 enable_iconv: "yes"
113 runs-on: ubuntu-20.04
114 steps:
115 - uses: actions/checkout@v2
116 with:
117 submodules: true
118 - name: Install
119 run: |
120 sudo apt-get install -y \
121 php-cli \
122 php-pear \
123 libcurl4-openssl-dev \
124 libevent-dev \
125 libidn11-dev \
126 libidn2-0-dev \
127 libicu-dev \
128 libevent-dev \
129 libbrotli-dev \
130 re2c
131 - name: Prepare
132 run: |
133 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
134 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
135 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
136 if test -n "$PECLs"; then
137 IFS=$','
138 for pecl in $PECLs; do
139 make -f scripts/ci/Makefile pecl PECL=$pecl
140 done
141 unset IFS
142 fi
143
144 - name: Build
145 run: |
146 make -f scripts/ci/Makefile ext PECL=http
147 - name: Test
148 run: |
149 make -f scripts/ci/Makefile test
150
151 old-matrix-3:
152 name: old-matrix-3
153 env:
154 PHP: "7.3"
155 enable_debug: "yes"
156 enable_maintainer_zts: "yes"
157 enable_json: "yes"
158 enable_hash: "yes"
159 enable_iconv: "yes"
160 runs-on: ubuntu-20.04
161 steps:
162 - uses: actions/checkout@v2
163 with:
164 submodules: true
165 - name: Install
166 run: |
167 sudo apt-get install -y \
168 php-cli \
169 php-pear \
170 libcurl4-openssl-dev \
171 libevent-dev \
172 libidn11-dev \
173 libidn2-0-dev \
174 libicu-dev \
175 libevent-dev \
176 libbrotli-dev \
177 re2c
178 - name: Prepare
179 run: |
180 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
181 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
182 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
183 if test -n "$PECLs"; then
184 IFS=$','
185 for pecl in $PECLs; do
186 make -f scripts/ci/Makefile pecl PECL=$pecl
187 done
188 unset IFS
189 fi
190
191 - name: Build
192 run: |
193 make -f scripts/ci/Makefile ext PECL=http
194 - name: Test
195 run: |
196 make -f scripts/ci/Makefile test
197
198 cur-none-0:
199 name: cur-none-0
200 env:
201 PHP: "7.4"
202 with_http_libicu_dir: "no"
203 with_http_libidn_dir: "no"
204 with_http_libidn2_dir: "no"
205 with_http_libcurl_dir: "no"
206 with_http_libevent_dir: "no"
207 with_http_libbrotli_dir: "no"
208 runs-on: ubuntu-20.04
209 steps:
210 - uses: actions/checkout@v2
211 with:
212 submodules: true
213 - name: Install
214 run: |
215 sudo apt-get install -y \
216 php-cli \
217 php-pear \
218 libcurl4-openssl-dev \
219 libevent-dev \
220 libidn11-dev \
221 libidn2-0-dev \
222 libicu-dev \
223 libevent-dev \
224 libbrotli-dev \
225 re2c
226 - name: Prepare
227 run: |
228 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
229 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
230 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
231 if test -n "$PECLs"; then
232 IFS=$','
233 for pecl in $PECLs; do
234 make -f scripts/ci/Makefile pecl PECL=$pecl
235 done
236 unset IFS
237 fi
238
239 - name: Build
240 run: |
241 make -f scripts/ci/Makefile ext PECL=http
242 - name: Test
243 run: |
244 make -f scripts/ci/Makefile test
245
246 cur-dbg-zts-0:
247 name: cur-dbg-zts-0
248 env:
249 PHP: "7.4"
250 PECLs: "event"
251 enable_sockets: "yes"
252 enable_debug: "yes"
253 enable_maintainer_zts: "yes"
254 enable_json: "yes"
255 enable_hash: "yes"
256 enable_iconv: "yes"
257 runs-on: ubuntu-20.04
258 steps:
259 - uses: actions/checkout@v2
260 with:
261 submodules: true
262 - name: Install
263 run: |
264 sudo apt-get install -y \
265 php-cli \
266 php-pear \
267 libcurl4-openssl-dev \
268 libevent-dev \
269 libidn11-dev \
270 libidn2-0-dev \
271 libicu-dev \
272 libevent-dev \
273 libbrotli-dev \
274 re2c
275 - name: Prepare
276 run: |
277 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
278 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
279 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
280 if test -n "$PECLs"; then
281 IFS=$','
282 for pecl in $PECLs; do
283 make -f scripts/ci/Makefile pecl PECL=$pecl
284 done
285 unset IFS
286 fi
287
288 - name: Build
289 run: |
290 make -f scripts/ci/Makefile ext PECL=http
291 - name: Test
292 run: |
293 make -f scripts/ci/Makefile test
294
295 cur-dbg-zts-1:
296 name: cur-dbg-zts-1
297 env:
298 PHP: "7.4"
299 PECLs: "event"
300 enable_sockets: "yes"
301 enable_debug: "no"
302 enable_maintainer_zts: "yes"
303 enable_json: "yes"
304 enable_hash: "yes"
305 enable_iconv: "yes"
306 runs-on: ubuntu-20.04
307 steps:
308 - uses: actions/checkout@v2
309 with:
310 submodules: true
311 - name: Install
312 run: |
313 sudo apt-get install -y \
314 php-cli \
315 php-pear \
316 libcurl4-openssl-dev \
317 libevent-dev \
318 libidn11-dev \
319 libidn2-0-dev \
320 libicu-dev \
321 libevent-dev \
322 libbrotli-dev \
323 re2c
324 - name: Prepare
325 run: |
326 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
327 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
328 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
329 if test -n "$PECLs"; then
330 IFS=$','
331 for pecl in $PECLs; do
332 make -f scripts/ci/Makefile pecl PECL=$pecl
333 done
334 unset IFS
335 fi
336
337 - name: Build
338 run: |
339 make -f scripts/ci/Makefile ext PECL=http
340 - name: Test
341 run: |
342 make -f scripts/ci/Makefile test
343
344 cur-dbg-zts-2:
345 name: cur-dbg-zts-2
346 env:
347 PHP: "7.4"
348 PECLs: "event"
349 enable_sockets: "yes"
350 enable_debug: "yes"
351 enable_maintainer_zts: "no"
352 enable_json: "yes"
353 enable_hash: "yes"
354 enable_iconv: "yes"
355 runs-on: ubuntu-20.04
356 steps:
357 - uses: actions/checkout@v2
358 with:
359 submodules: true
360 - name: Install
361 run: |
362 sudo apt-get install -y \
363 php-cli \
364 php-pear \
365 libcurl4-openssl-dev \
366 libevent-dev \
367 libidn11-dev \
368 libidn2-0-dev \
369 libicu-dev \
370 libevent-dev \
371 libbrotli-dev \
372 re2c
373 - name: Prepare
374 run: |
375 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
376 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
377 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
378 if test -n "$PECLs"; then
379 IFS=$','
380 for pecl in $PECLs; do
381 make -f scripts/ci/Makefile pecl PECL=$pecl
382 done
383 unset IFS
384 fi
385
386 - name: Build
387 run: |
388 make -f scripts/ci/Makefile ext PECL=http
389 - name: Test
390 run: |
391 make -f scripts/ci/Makefile test
392
393 cur-dbg-zts-3:
394 name: cur-dbg-zts-3
395 env:
396 PHP: "7.4"
397 PECLs: "event"
398 enable_sockets: "yes"
399 enable_debug: "no"
400 enable_maintainer_zts: "no"
401 enable_json: "yes"
402 enable_hash: "yes"
403 enable_iconv: "yes"
404 runs-on: ubuntu-20.04
405 steps:
406 - uses: actions/checkout@v2
407 with:
408 submodules: true
409 - name: Install
410 run: |
411 sudo apt-get install -y \
412 php-cli \
413 php-pear \
414 libcurl4-openssl-dev \
415 libevent-dev \
416 libidn11-dev \
417 libidn2-0-dev \
418 libicu-dev \
419 libevent-dev \
420 libbrotli-dev \
421 re2c
422 - name: Prepare
423 run: |
424 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
425 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
426 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
427 if test -n "$PECLs"; then
428 IFS=$','
429 for pecl in $PECLs; do
430 make -f scripts/ci/Makefile pecl PECL=$pecl
431 done
432 unset IFS
433 fi
434
435 - name: Build
436 run: |
437 make -f scripts/ci/Makefile ext PECL=http
438 - name: Test
439 run: |
440 make -f scripts/ci/Makefile test
441
442 cur-cov-0:
443 name: cur-cov-0
444 env:
445 CFLAGS: "-O0 -g --coverage"
446 CXXFLAGS: "-O0 -g --coverage"
447 PHP: "7.4"
448 PECLs: "event"
449 enable_sockets: "yes"
450 enable_json: "yes"
451 enable_hash: "yes"
452 enable_iconv: "yes"
453 with_http_libicu_dir: "yes"
454 with_http_libidn_dir: "no"
455 with_http_libidn2_dir: "no"
456 runs-on: ubuntu-20.04
457 steps:
458 - uses: actions/checkout@v2
459 with:
460 submodules: true
461 - name: Install
462 run: |
463 sudo apt-get install -y \
464 php-cli \
465 php-pear \
466 libcurl4-openssl-dev \
467 libevent-dev \
468 libidn11-dev \
469 libidn2-0-dev \
470 libicu-dev \
471 libevent-dev \
472 libbrotli-dev \
473 re2c
474 - name: Prepare
475 run: |
476 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
477 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
478 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
479 if test -n "$PECLs"; then
480 IFS=$','
481 for pecl in $PECLs; do
482 make -f scripts/ci/Makefile pecl PECL=$pecl
483 done
484 unset IFS
485 fi
486
487 - name: Build
488 run: |
489 make -f scripts/ci/Makefile ext PECL=http
490 - name: Test
491 run: |
492 make -f scripts/ci/Makefile test
493 - name: Coverage
494 if: success()
495 run: |
496 cd src/.libs
497 bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
498
499 cur-cov-1:
500 name: cur-cov-1
501 env:
502 CFLAGS: "-O0 -g --coverage"
503 CXXFLAGS: "-O0 -g --coverage"
504 PHP: "7.4"
505 PECLs: "event"
506 enable_sockets: "yes"
507 enable_json: "yes"
508 enable_hash: "yes"
509 enable_iconv: "yes"
510 with_http_libicu_dir: "no"
511 with_http_libidn_dir: "yes"
512 with_http_libidn2_dir: "no"
513 runs-on: ubuntu-20.04
514 steps:
515 - uses: actions/checkout@v2
516 with:
517 submodules: true
518 - name: Install
519 run: |
520 sudo apt-get install -y \
521 php-cli \
522 php-pear \
523 libcurl4-openssl-dev \
524 libevent-dev \
525 libidn11-dev \
526 libidn2-0-dev \
527 libicu-dev \
528 libevent-dev \
529 libbrotli-dev \
530 re2c
531 - name: Prepare
532 run: |
533 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
534 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
535 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
536 if test -n "$PECLs"; then
537 IFS=$','
538 for pecl in $PECLs; do
539 make -f scripts/ci/Makefile pecl PECL=$pecl
540 done
541 unset IFS
542 fi
543
544 - name: Build
545 run: |
546 make -f scripts/ci/Makefile ext PECL=http
547 - name: Test
548 run: |
549 make -f scripts/ci/Makefile test
550 - name: Coverage
551 if: success()
552 run: |
553 cd src/.libs
554 bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
555
556 cur-cov-2:
557 name: cur-cov-2
558 env:
559 CFLAGS: "-O0 -g --coverage"
560 CXXFLAGS: "-O0 -g --coverage"
561 PHP: "7.4"
562 PECLs: "event"
563 enable_sockets: "yes"
564 enable_json: "yes"
565 enable_hash: "yes"
566 enable_iconv: "yes"
567 with_http_libicu_dir: "no"
568 with_http_libidn_dir: "no"
569 with_http_libidn2_dir: "yes"
570 runs-on: ubuntu-20.04
571 steps:
572 - uses: actions/checkout@v2
573 with:
574 submodules: true
575 - name: Install
576 run: |
577 sudo apt-get install -y \
578 php-cli \
579 php-pear \
580 libcurl4-openssl-dev \
581 libevent-dev \
582 libidn11-dev \
583 libidn2-0-dev \
584 libicu-dev \
585 libevent-dev \
586 libbrotli-dev \
587 re2c
588 - name: Prepare
589 run: |
590 make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
591 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
592 make -f scripts/ci/Makefile pecl PECL=m6w6/ext-propro.git:propro:master
593 if test -n "$PECLs"; then
594 IFS=$','
595 for pecl in $PECLs; do
596 make -f scripts/ci/Makefile pecl PECL=$pecl
597 done
598 unset IFS
599 fi
600
601 - name: Build
602 run: |
603 make -f scripts/ci/Makefile ext PECL=http
604 - name: Test
605 run: |
606 make -f scripts/ci/Makefile test
607 - name: Coverage
608 if: success()
609 run: |
610 cd src/.libs
611 bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
612