projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
prepare v4.2.5
[m6w6/ext-http]
/
scripts
/
gen_github_workflow_ci.php
diff --git
a/scripts/gen_github_workflow_ci.php
b/scripts/gen_github_workflow_ci.php
index 098da4821b6fad6bb277c0dc39feb3caa41f93c8..41ce95fbb68aa144239691f89801cb06fcca82cc 100755
(executable)
--- a/
scripts/gen_github_workflow_ci.php
+++ b/
scripts/gen_github_workflow_ci.php
@@
-11,15
+11,21
@@
jobs:
<?php
$gen = include __DIR__ . "/ci/gen-matrix.php";
<?php
$gen = include __DIR__ . "/ci/gen-matrix.php";
-$cur = "8.
0
";
+$cur = "8.
2
";
$job = $gen->github([
$job = $gen->github([
-"master" => [
-// most useful for all additional versions except current
+"next" => [
"PHP" => ["master"],
"enable_debug" => "yes",
"enable_zts" => "yes",
"enable_iconv" => "yes",
"PHP" => ["master"],
"enable_debug" => "yes",
"enable_zts" => "yes",
"enable_iconv" => "yes",
-],
+ "TEST_PHP_ARGS" => "-d error_reporting=24575" // ignore E_DEPRECATED
+],
+"old" => [
+ "PHP" => ["8.1", "8.0"],
+ "enable_debug" => "yes",
+ "enable_zts" => "yes",
+ "enable_iconv" => "yes",
+],
"cur-none" => [
// everything disabled for current
"PHP" => $cur,
"cur-none" => [
// everything disabled for current
"PHP" => $cur,
@@
-29,18
+35,18
@@
$job = $gen->github([
"with_http_libcurl_dir" => "no",
"with_http_libevent_dir" => "no",
"with_http_libbrotli_dir" => "no",
"with_http_libcurl_dir" => "no",
"with_http_libevent_dir" => "no",
"with_http_libbrotli_dir" => "no",
-],
+],
"cur-dbg-zts" => [
// everything enabled for current, switching debug/zts
"PHP" => $cur,
"enable_debug",
"enable_zts",
"enable_iconv" => "yes",
"cur-dbg-zts" => [
// everything enabled for current, switching debug/zts
"PHP" => $cur,
"enable_debug",
"enable_zts",
"enable_iconv" => "yes",
-],
+],
"cur-cov" => [
// once everything enabled for current, with coverage
"cur-cov" => [
// once everything enabled for current, with coverage
- "CFLAGS" => "
'-O0 -g --coverage'
",
- "CXXFLAGS" => "
'-O0 -g --coverage'
",
+ "CFLAGS" => "
-O0 -g --coverage
",
+ "CXXFLAGS" => "
-O0 -g --coverage
",
"PHP" => $cur,
"enable_iconv" => "yes",
[
"PHP" => $cur,
"enable_iconv" => "yes",
[
@@
-52,38
+58,45
@@
$job = $gen->github([
]]);
foreach ($job as $id => $env) {
printf(" %s:\n", $id);
]]);
foreach ($job as $id => $env) {
printf(" %s:\n", $id);
- printf(" name:
%s\n", $id
);
+ printf(" name:
\"%s (%s)\"\n", $id, $env["PHP"]
);
if ($env["PHP"] == "master") {
printf(" continue-on-error: true\n");
}
printf(" env:\n");
foreach ($env as $key => $val) {
if ($env["PHP"] == "master") {
printf(" continue-on-error: true\n");
}
printf(" env:\n");
foreach ($env as $key => $val) {
- printf(" %s:
%s
\n", $key, $val);
+ printf(" %s:
\"%s\"
\n", $key, $val);
}
?>
}
?>
+ runs-on: ubuntu-22.04
steps:
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: Info
+ run: |
+ locale -a && locale
- name: Install
run: |
sudo apt-get install -y \
php-cli \
php-pear \
libcurl4-openssl-dev \
- name: Install
run: |
sudo apt-get install -y \
php-cli \
php-pear \
libcurl4-openssl-dev \
- libidn
11
-dev \
+ libidn-dev \
libidn2-0-dev \
libicu-dev \
libevent-dev \
libidn2-0-dev \
libicu-dev \
libevent-dev \
- libbrotli-dev
+ libbrotli-dev \
+ re2c
- name: Prepare
run: |
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
- name: Build
run: |
- name: Prepare
run: |
make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
- name: Build
run: |
- make -f
travis/pecl
/Makefile ext PECL=http
+ make -f
scripts/ci
/Makefile ext PECL=http
- name: Test
run: |
- name: Test
run: |
- make -f
travis/pecl
/Makefile test
+ make -f
scripts/ci
/Makefile test
<?php if (isset($env["CFLAGS"]) && strpos($env["CFLAGS"], "--coverage") != false) : ?>
- name: Coverage
if: success()
<?php if (isset($env["CFLAGS"]) && strpos($env["CFLAGS"], "--coverage") != false) : ?>
- name: Coverage
if: success()