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