Skip to content

Commit 7446944

Browse files
committed
ci & pie
1 parent e20a54c commit 7446944

File tree

3 files changed

+39
-16
lines changed

3 files changed

+39
-16
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,34 @@ jobs:
147147
run: |
148148
make -f scripts/ci/Makefile test
149149
150+
old-matrix-5:
151+
name: old-matrix-5
152+
env:
153+
PHP: "8.3"
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+
150178
master-0:
151179
name: master-0
152180
continue-on-error: true
@@ -178,7 +206,7 @@ jobs:
178206
cur-dbg-zts-0:
179207
name: cur-dbg-zts-0
180208
env:
181-
PHP: "8.3"
209+
PHP: "8.4"
182210
enable_debug: "yes"
183211
enable_zts: "yes"
184212
runs-on: ubuntu-20.04
@@ -205,7 +233,7 @@ jobs:
205233
cur-dbg-zts-1:
206234
name: cur-dbg-zts-1
207235
env:
208-
PHP: "8.3"
236+
PHP: "8.4"
209237
enable_debug: "no"
210238
enable_zts: "yes"
211239
runs-on: ubuntu-20.04
@@ -232,7 +260,7 @@ jobs:
232260
cur-dbg-zts-2:
233261
name: cur-dbg-zts-2
234262
env:
235-
PHP: "8.3"
263+
PHP: "8.4"
236264
enable_debug: "yes"
237265
enable_zts: "no"
238266
runs-on: ubuntu-20.04
@@ -259,7 +287,7 @@ jobs:
259287
cur-dbg-zts-3:
260288
name: cur-dbg-zts-3
261289
env:
262-
PHP: "8.3"
290+
PHP: "8.4"
263291
enable_debug: "no"
264292
enable_zts: "no"
265293
runs-on: ubuntu-20.04
@@ -288,7 +316,7 @@ jobs:
288316
env:
289317
CFLAGS: "-O0 -g --coverage"
290318
CXXFLAGS: "-O0 -g --coverage"
291-
PHP: "8.3"
319+
PHP: "8.4"
292320
runs-on: ubuntu-20.04
293321
steps:
294322
- uses: actions/checkout@v2
@@ -311,7 +339,5 @@ jobs:
311339
make -f scripts/ci/Makefile test
312340
- name: Coverage
313341
if: success()
314-
run: |
315-
cd .libs
316-
bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
342+
uses: codecov/codecov-action@v5
317343

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ See the [online markdown reference](https://mdref.m6w6.name/json_post).
1515

1616
pecl install json_post
1717

18-
### PHARext
18+
### PIE
1919

20-
Watch out for [PECL replicates](https://replicator.pharext.org?json_post)
21-
and pharext packages attached to [releases](https://github.com/m6w6/ext-json_post/releases).
20+
pie install m6w6/ext-json_post
2221

2322
### Checkout
2423

scripts/gen_github_workflow_ci.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
jobs:
1111
<?php
1212

13-
$cur = "8.3";
13+
$cur = "8.4";
1414
$gen = include __DIR__ . "/ci/gen-matrix.php";
1515
$job = $gen->github([
1616
"old-matrix" => [
17-
"PHP" => ["5.6", "7.4", "8.0", "8.1", "8.2"],
17+
"PHP" => ["5.6", "7.4", "8.0", "8.1", "8.2", "8.3"],
1818
"enable_debug" => "yes",
1919
"enable_maintainer_zts" => "yes",
2020
"enable_json" => "yes",
@@ -68,9 +68,7 @@
6868
<?php if (isset($env["CFLAGS"]) && strpos($env["CFLAGS"], "--coverage") != false) : ?>
6969
- name: Coverage
7070
if: success()
71-
run: |
72-
cd .libs
73-
bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
71+
uses: codecov/codecov-action@v5
7472
<?php endif; ?>
7573

7674
<?php

0 commit comments

Comments
 (0)