clang-7 as old for bionic instead of 6
authorMichael Wallner <mike@php.net>
Fri, 2 Oct 2020 16:14:04 +0000 (18:14 +0200)
committerMichael Wallner <mike@php.net>
Fri, 2 Oct 2020 16:14:04 +0000 (18:14 +0200)
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml

index 93e06dd22da6c1ab3b528497bae2f837a97eeec2..8d1dc993b1bf1a4364d29ddc5362f6417ff6b357 100755 (executable)
@@ -29,6 +29,14 @@ const APT = [
         "CXX" => "g++-10",
       ]
     ]
+  ],
+  "ubuntu-18.04" => [
+    "clang" => [
+      "old" => [
+        "CC" => "clang-7",
+        "CXX" => "clang-7"
+      ]
+    ]
   ]
 ];
 const MAP = [
@@ -64,7 +72,7 @@ const MAP = [
           'env.CC_VER' => [
             "new"  => "-9",
             "cur"  => "-8",
-            "old"  => "-6.0"
+            "old"  => "-7"
           ]
         ]
       ]
index 6d045ee1d48251187f52df243c58dd3a70a13b85..1c2d355e6495900dd708d5dfd2bf66306ae27f89 100644 (file)
@@ -104,8 +104,10 @@ jobs:
       - name: Prepare environment (for old clang on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='old')
         run: |
-          echo CC=clang-6.0 >> ${GITHUB_ENV}
-          echo CXX=clang++-6.0 >> ${GITHUB_ENV}
+          echo CC=clang-7 >> ${GITHUB_ENV}
+          echo CXX=clang++-7 >> ${GITHUB_ENV}
+          echo INSTALL_CC='clang-7' >> ${GITHUB_ENV}
+          echo INSTALL_CXX='clang-7' >> ${GITHUB_ENV}
       - name: Install dependencies
         if: runner.os == 'Linux'
         run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}