Skip to content

Commit 0374afe

Browse files
committed
ci: enable all
1 parent 9bef6b5 commit 0374afe

File tree

2 files changed

+268
-20
lines changed

2 files changed

+268
-20
lines changed

.github/workflows/ci.yml

Lines changed: 251 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,43 @@ on:
88

99
jobs:
1010
old-matrix-0:
11-
name: "old-matrix-0 (8.3)"
11+
name: "old-matrix-0 (8.2)"
12+
env:
13+
PHP: "8.2"
14+
enable_debug: "yes"
15+
enable_zts: "yes"
16+
enable_json: "yes"
17+
PQ_DSN: "postgres:///runner"
18+
runs-on: ubuntu-24.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+
libpq-dev \
29+
re2c
30+
- name: Prepare
31+
run: |
32+
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
33+
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
34+
- name: Build
35+
run: |
36+
make -f scripts/ci/Makefile ext PECL=pq
37+
- name: Prepare Test
38+
run: |
39+
sudo systemctl start postgresql
40+
sudo -u postgres createuser --login runner
41+
sudo -u postgres createdb -O runner runner
42+
- name: Test
43+
run: |
44+
make -f scripts/ci/Makefile test
45+
46+
old-matrix-1:
47+
name: "old-matrix-1 (8.3)"
1248
env:
1349
PHP: "8.3"
1450
enable_debug: "yes"
@@ -43,6 +79,42 @@ jobs:
4379
run: |
4480
make -f scripts/ci/Makefile test
4581
82+
oldest-0:
83+
name: "oldest-0 (7.4)"
84+
env:
85+
PHP: "7.4"
86+
enable_debug: "yes"
87+
enable_maintainer_zts: "yes"
88+
enable_json: "yes"
89+
PQ_DSN: "postgres:///runner"
90+
runs-on: ubuntu-24.04
91+
steps:
92+
- uses: actions/checkout@v2
93+
with:
94+
submodules: true
95+
- name: Install
96+
run: |
97+
sudo apt-get install -y \
98+
php-cli \
99+
php-pear \
100+
libpq-dev \
101+
re2c
102+
- name: Prepare
103+
run: |
104+
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
105+
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
106+
- name: Build
107+
run: |
108+
make -f scripts/ci/Makefile ext PECL=pq
109+
- name: Prepare Test
110+
run: |
111+
sudo systemctl start postgresql
112+
sudo -u postgres createuser --login runner
113+
sudo -u postgres createdb -O runner runner
114+
- name: Test
115+
run: |
116+
make -f scripts/ci/Makefile test
117+
46118
next-0:
47119
name: "next-0 (8.5)"
48120
env:
@@ -114,3 +186,181 @@ jobs:
114186
run: |
115187
make -f scripts/ci/Makefile test
116188
189+
cur-dbg-zts-0:
190+
name: "cur-dbg-zts-0 (8.4)"
191+
env:
192+
PHP: "8.4"
193+
enable_debug: "yes"
194+
enable_zts: "yes"
195+
PQ_DSN: "postgres:///runner"
196+
runs-on: ubuntu-24.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+
libpq-dev \
207+
re2c
208+
- name: Prepare
209+
run: |
210+
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
211+
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
212+
- name: Build
213+
run: |
214+
make -f scripts/ci/Makefile ext PECL=pq
215+
- name: Prepare Test
216+
run: |
217+
sudo systemctl start postgresql
218+
sudo -u postgres createuser --login runner
219+
sudo -u postgres createdb -O runner runner
220+
- name: Test
221+
run: |
222+
make -f scripts/ci/Makefile test
223+
224+
cur-dbg-zts-1:
225+
name: "cur-dbg-zts-1 (8.4)"
226+
env:
227+
PHP: "8.4"
228+
enable_debug: "no"
229+
enable_zts: "yes"
230+
PQ_DSN: "postgres:///runner"
231+
runs-on: ubuntu-24.04
232+
steps:
233+
- uses: actions/checkout@v2
234+
with:
235+
submodules: true
236+
- name: Install
237+
run: |
238+
sudo apt-get install -y \
239+
php-cli \
240+
php-pear \
241+
libpq-dev \
242+
re2c
243+
- name: Prepare
244+
run: |
245+
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
246+
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
247+
- name: Build
248+
run: |
249+
make -f scripts/ci/Makefile ext PECL=pq
250+
- name: Prepare Test
251+
run: |
252+
sudo systemctl start postgresql
253+
sudo -u postgres createuser --login runner
254+
sudo -u postgres createdb -O runner runner
255+
- name: Test
256+
run: |
257+
make -f scripts/ci/Makefile test
258+
259+
cur-dbg-zts-2:
260+
name: "cur-dbg-zts-2 (8.4)"
261+
env:
262+
PHP: "8.4"
263+
enable_debug: "yes"
264+
enable_zts: "no"
265+
PQ_DSN: "postgres:///runner"
266+
runs-on: ubuntu-24.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+
libpq-dev \
277+
re2c
278+
- name: Prepare
279+
run: |
280+
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
281+
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
282+
- name: Build
283+
run: |
284+
make -f scripts/ci/Makefile ext PECL=pq
285+
- name: Prepare Test
286+
run: |
287+
sudo systemctl start postgresql
288+
sudo -u postgres createuser --login runner
289+
sudo -u postgres createdb -O runner runner
290+
- name: Test
291+
run: |
292+
make -f scripts/ci/Makefile test
293+
294+
cur-dbg-zts-3:
295+
name: "cur-dbg-zts-3 (8.4)"
296+
env:
297+
PHP: "8.4"
298+
enable_debug: "no"
299+
enable_zts: "no"
300+
PQ_DSN: "postgres:///runner"
301+
runs-on: ubuntu-24.04
302+
steps:
303+
- uses: actions/checkout@v2
304+
with:
305+
submodules: true
306+
- name: Install
307+
run: |
308+
sudo apt-get install -y \
309+
php-cli \
310+
php-pear \
311+
libpq-dev \
312+
re2c
313+
- name: Prepare
314+
run: |
315+
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
316+
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
317+
- name: Build
318+
run: |
319+
make -f scripts/ci/Makefile ext PECL=pq
320+
- name: Prepare Test
321+
run: |
322+
sudo systemctl start postgresql
323+
sudo -u postgres createuser --login runner
324+
sudo -u postgres createdb -O runner runner
325+
- name: Test
326+
run: |
327+
make -f scripts/ci/Makefile test
328+
329+
cur-cov-0:
330+
name: "cur-cov-0 (8.4)"
331+
env:
332+
CFLAGS: "-O0 -g --coverage"
333+
CXXFLAGS: "-O0 -g --coverage"
334+
PHP: "8.4"
335+
PQ_DSN: "postgres:///runner"
336+
runs-on: ubuntu-24.04
337+
steps:
338+
- uses: actions/checkout@v2
339+
with:
340+
submodules: true
341+
- name: Install
342+
run: |
343+
sudo apt-get install -y \
344+
php-cli \
345+
php-pear \
346+
libpq-dev \
347+
re2c
348+
- name: Prepare
349+
run: |
350+
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
351+
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
352+
- name: Build
353+
run: |
354+
make -f scripts/ci/Makefile ext PECL=pq
355+
- name: Prepare Test
356+
run: |
357+
sudo systemctl start postgresql
358+
sudo -u postgres createuser --login runner
359+
sudo -u postgres createdb -O runner runner
360+
- name: Test
361+
run: |
362+
make -f scripts/ci/Makefile test
363+
- name: Coverage
364+
if: success()
365+
uses: codecov/codecov-action@v5
366+

scripts/gen_github_workflow_ci.php

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,31 @@
1414
$cur = "8.4";
1515
$job = $gen->github([
1616
"old-matrix" => [
17-
"PHP" => [
18-
//"8.0", "8.1", "8.2",
19-
"8.3"],
17+
"PHP" => ["8.2", "8.3"],
2018
"enable_debug" => "yes",
2119
"enable_zts" => "yes",
2220
"enable_json" => "yes",
2321
],
24-
// "oldest" => [
25-
// "PHP" => ["7.4"],
26-
// "enable_debug" => "yes",
27-
// "enable_maintainer_zts" => "yes",
28-
// "enable_json" => "yes",
29-
// ],
22+
"oldest" => [
23+
"PHP" => ["7.4"],
24+
"enable_debug" => "yes",
25+
"enable_maintainer_zts" => "yes",
26+
"enable_json" => "yes",
27+
],
3028
"next" => [
3129
"PHP" => ["8.5", "master"],
3230
"enable_debug" => "yes",
3331
"enable_zts" => "yes",
34-
//],
35-
// "cur-dbg-zts" => [
36-
// "PHP" => $cur,
37-
// "enable_debug",
38-
// "enable_zts",
39-
//],
40-
// "cur-cov" => [
41-
// "CFLAGS" => "-O0 -g --coverage",
42-
// "CXXFLAGS" => "-O0 -g --coverage",
43-
// "PHP" => $cur,
32+
],
33+
"cur-dbg-zts" => [
34+
"PHP" => $cur,
35+
"enable_debug",
36+
"enable_zts",
37+
],
38+
"cur-cov" => [
39+
"CFLAGS" => "-O0 -g --coverage",
40+
"CXXFLAGS" => "-O0 -g --coverage",
41+
"PHP" => $cur,
4442
]]);
4543
foreach ($job as $id => $env) {
4644
printf(" %s:\n", $id);

0 commit comments

Comments
 (0)