gh-actions: ci: fix script location
[m6w6/ext-http] / scripts / gen_github_workflow_ci.php
index 098da4821b6fad6bb277c0dc39feb3caa41f93c8..f714bbcd7cf20fe089cd6e8fec2f9c01325d2fbb 100755 (executable)
@@ -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 \
@@ -80,10 +83,10 @@ foreach ($job as $id => $env) {
           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
 <?php if (isset($env["CFLAGS"]) && strpos($env["CFLAGS"], "--coverage") != false) : ?>
       - name: Coverage
         if: success()