From 75db5c418cc509a5ff7528b49349706d35aff931 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 16 Nov 2021 14:54:53 +0100 Subject: [PATCH] ci: add 8.1 --- .github/workflows/ci.yml | 56 ++++++++++++++++++++++++------ scripts/gen_github_workflow_ci.php | 12 +++---- 2 files changed, 52 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e0dc3d..2ed701c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,44 @@ on: pull_request: jobs: - master-0: - name: master-0 + next-0: + name: "next-0 (8.1)" + env: + PHP: "8.1" + enable_debug: "yes" + enable_zts: "yes" + enable_iconv: "yes" + TEST_PHP_ARGS: "-d error_reporting=24575" + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Install + run: | + sudo apt-get install -y \ + php-cli \ + php-pear \ + libcurl4-openssl-dev \ + libidn11-dev \ + libidn2-0-dev \ + libicu-dev \ + libevent-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: | + make -f scripts/ci/Makefile ext PECL=http + - name: Test + run: | + make -f scripts/ci/Makefile test + + next-1: + name: "next-1 (master)" continue-on-error: true env: PHP: "master" @@ -45,7 +81,7 @@ jobs: make -f scripts/ci/Makefile test cur-none-0: - name: cur-none-0 + name: "cur-none-0 (8.0)" env: PHP: "8.0" with_http_libicu_dir: "no" @@ -83,7 +119,7 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-0: - name: cur-dbg-zts-0 + name: "cur-dbg-zts-0 (8.0)" env: PHP: "8.0" enable_debug: "yes" @@ -118,7 +154,7 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-1: - name: cur-dbg-zts-1 + name: "cur-dbg-zts-1 (8.0)" env: PHP: "8.0" enable_debug: "no" @@ -153,7 +189,7 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-2: - name: cur-dbg-zts-2 + name: "cur-dbg-zts-2 (8.0)" env: PHP: "8.0" enable_debug: "yes" @@ -188,7 +224,7 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-3: - name: cur-dbg-zts-3 + name: "cur-dbg-zts-3 (8.0)" env: PHP: "8.0" enable_debug: "no" @@ -223,7 +259,7 @@ jobs: make -f scripts/ci/Makefile test cur-cov-0: - name: cur-cov-0 + name: "cur-cov-0 (8.0)" env: CFLAGS: "-O0 -g --coverage" CXXFLAGS: "-O0 -g --coverage" @@ -266,7 +302,7 @@ jobs: bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy cur-cov-1: - name: cur-cov-1 + name: "cur-cov-1 (8.0)" env: CFLAGS: "-O0 -g --coverage" CXXFLAGS: "-O0 -g --coverage" @@ -309,7 +345,7 @@ jobs: bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy cur-cov-2: - name: cur-cov-2 + name: "cur-cov-2 (8.0)" env: CFLAGS: "-O0 -g --coverage" CXXFLAGS: "-O0 -g --coverage" diff --git a/scripts/gen_github_workflow_ci.php b/scripts/gen_github_workflow_ci.php index f36cf5f..c23f23e 100755 --- a/scripts/gen_github_workflow_ci.php +++ b/scripts/gen_github_workflow_ci.php @@ -13,14 +13,14 @@ jobs: $gen = include __DIR__ . "/ci/gen-matrix.php"; $cur = "8.0"; $job = $gen->github([ -"master" => [ +"next" => [ // most useful for all additional versions except current - "PHP" => ["master"], + "PHP" => ["8.1", "master"], "enable_debug" => "yes", "enable_zts" => "yes", "enable_iconv" => "yes", "TEST_PHP_ARGS" => "-d error_reporting=24575" // ignore E_DEPRECATED -], +], "cur-none" => [ // everything disabled for current "PHP" => $cur, @@ -30,14 +30,14 @@ $job = $gen->github([ "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-cov" => [ // once everything enabled for current, with coverage "CFLAGS" => "-O0 -g --coverage", @@ -53,7 +53,7 @@ $job = $gen->github([ ]]); 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"); } -- 2.30.2