X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=scripts%2Fgen_github_workflow_ci.php;h=7cbbdfb056640a729137a915bd3d9db77bfc2d53;hp=098da4821b6fad6bb277c0dc39feb3caa41f93c8;hb=640b762aa5a5fdf571e44f7a66725c097b7dc0f1;hpb=7a0dee8cc0dc7fc165d9c4f39a070bf3c32ce756 diff --git a/scripts/gen_github_workflow_ci.php b/scripts/gen_github_workflow_ci.php index 098da48..7cbbdfb 100755 --- a/scripts/gen_github_workflow_ci.php +++ b/scripts/gen_github_workflow_ci.php @@ -39,8 +39,8 @@ $job = $gen->github([ ], "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", [ @@ -58,11 +58,14 @@ foreach ($job as $id => $env) { } printf(" env:\n"); foreach ($env as $key => $val) { - printf(" %s: %s\n", $key, $val); + printf(" %s: \"%s\"\n", $key, $val); } ?> + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 + with: + submodules: true - name: Install run: | sudo apt-get install -y \ @@ -73,17 +76,18 @@ foreach ($job as $id => $env) { 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: | - make -f travis/pecl/Makefile ext PECL=http + make -f scripts/ci/Makefile ext PECL=http - name: Test run: | - make -f travis/pecl/Makefile test + make -f scripts/ci/Makefile test - name: Coverage if: success()