gh-actions: ci: quote envvars
authorMichael Wallner <mike@php.net>
Tue, 12 Jan 2021 17:04:35 +0000 (18:04 +0100)
committerMichael Wallner <mike@php.net>
Tue, 12 Jan 2021 17:04:35 +0000 (18:04 +0100)
.github/workflows/ci.yml
scripts/gen_github_workflow_ci.php

index 5df865283131fa1f24147f2e2e5eb34821dd5046..fa754789e89715cb0084cab140f9c54b36c6bb63 100644 (file)
@@ -11,10 +11,10 @@ jobs:
     name: master-0
     continue-on-error: true
     env:
-      PHP: master
-      enable_debug: yes
-      enable_zts: yes
-      enable_iconv: yes
+      PHP: "master"
+      enable_debug: "yes"
+      enable_zts: "yes"
+      enable_iconv: "yes"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -45,13 +45,13 @@ jobs:
   cur-none-0:
     name: cur-none-0
     env:
-      PHP: 8.0
-      with_http_libicu_dir: no
-      with_http_libidn_dir: no
-      with_http_libidn2_dir: no
-      with_http_libcurl_dir: no
-      with_http_libevent_dir: no
-      with_http_libbrotli_dir: no
+      PHP: "8.0"
+      with_http_libicu_dir: "no"
+      with_http_libidn_dir: "no"
+      with_http_libidn2_dir: "no"
+      with_http_libcurl_dir: "no"
+      with_http_libevent_dir: "no"
+      with_http_libbrotli_dir: "no"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -82,10 +82,10 @@ jobs:
   cur-dbg-zts-0:
     name: cur-dbg-zts-0
     env:
-      PHP: 8.0
-      enable_debug: yes
-      enable_zts: yes
-      enable_iconv: yes
+      PHP: "8.0"
+      enable_debug: "yes"
+      enable_zts: "yes"
+      enable_iconv: "yes"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -116,10 +116,10 @@ jobs:
   cur-dbg-zts-1:
     name: cur-dbg-zts-1
     env:
-      PHP: 8.0
-      enable_debug: no
-      enable_zts: yes
-      enable_iconv: yes
+      PHP: "8.0"
+      enable_debug: "no"
+      enable_zts: "yes"
+      enable_iconv: "yes"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -150,10 +150,10 @@ jobs:
   cur-dbg-zts-2:
     name: cur-dbg-zts-2
     env:
-      PHP: 8.0
-      enable_debug: yes
-      enable_zts: no
-      enable_iconv: yes
+      PHP: "8.0"
+      enable_debug: "yes"
+      enable_zts: "no"
+      enable_iconv: "yes"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -184,10 +184,10 @@ jobs:
   cur-dbg-zts-3:
     name: cur-dbg-zts-3
     env:
-      PHP: 8.0
-      enable_debug: no
-      enable_zts: no
-      enable_iconv: yes
+      PHP: "8.0"
+      enable_debug: "no"
+      enable_zts: "no"
+      enable_iconv: "yes"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -218,13 +218,13 @@ jobs:
   cur-cov-0:
     name: cur-cov-0
     env:
-      CFLAGS: '-O0 -g --coverage'
-      CXXFLAGS: '-O0 -g --coverage'
-      PHP: 8.0
-      enable_iconv: yes
-      with_http_libicu_dir: yes
-      with_http_libidn_dir: no
-      with_http_libidn2_dir: no
+      CFLAGS: "'-O0 -g --coverage'"
+      CXXFLAGS: "'-O0 -g --coverage'"
+      PHP: "8.0"
+      enable_iconv: "yes"
+      with_http_libicu_dir: "yes"
+      with_http_libidn_dir: "no"
+      with_http_libidn2_dir: "no"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -260,13 +260,13 @@ jobs:
   cur-cov-1:
     name: cur-cov-1
     env:
-      CFLAGS: '-O0 -g --coverage'
-      CXXFLAGS: '-O0 -g --coverage'
-      PHP: 8.0
-      enable_iconv: yes
-      with_http_libicu_dir: no
-      with_http_libidn_dir: yes
-      with_http_libidn2_dir: no
+      CFLAGS: "'-O0 -g --coverage'"
+      CXXFLAGS: "'-O0 -g --coverage'"
+      PHP: "8.0"
+      enable_iconv: "yes"
+      with_http_libicu_dir: "no"
+      with_http_libidn_dir: "yes"
+      with_http_libidn2_dir: "no"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
@@ -302,13 +302,13 @@ jobs:
   cur-cov-2:
     name: cur-cov-2
     env:
-      CFLAGS: '-O0 -g --coverage'
-      CXXFLAGS: '-O0 -g --coverage'
-      PHP: 8.0
-      enable_iconv: yes
-      with_http_libicu_dir: no
-      with_http_libidn_dir: no
-      with_http_libidn2_dir: yes
+      CFLAGS: "'-O0 -g --coverage'"
+      CXXFLAGS: "'-O0 -g --coverage'"
+      PHP: "8.0"
+      enable_iconv: "yes"
+      with_http_libicu_dir: "no"
+      with_http_libidn_dir: "no"
+      with_http_libidn2_dir: "yes"
     runs-on: ubuntu-20.04
     steps:
       - uses: actions/checkout@v2
index 3b927ea4c6c5e9cac324e617b0dfffdf565926f7..384ff6687b5f414537e4f96a5901d88e7287d493 100755 (executable)
@@ -58,7 +58,7 @@ 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