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