ci: gh-actions: clang+libc++ cannot find headers
authorMichael Wallner <mike@php.net>
Mon, 21 Dec 2020 15:27:01 +0000 (16:27 +0100)
committerMichael Wallner <mike@php.net>
Mon, 21 Dec 2020 15:27:01 +0000 (16:27 +0100)
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml

index 9494590bd66945bb79d7d03b57050b670491a027..dd170e3bbeef6937e93b5645f3cfa3d151d24413 100755 (executable)
@@ -86,13 +86,11 @@ const ENV = [
       ],
       "cur" => [
         "CXXFLAGS" => "-stdlib=libc++",
-        "INSTALL_CXX" => "libc++"
-          . MAP["env.OS_VER"]["ubuntu-20.04"]["env.CC_VND"]["clang"]["env.CC_VER"]["cur"] . "-dev"
+        "INSTALL_CXX" => "libc++-9-dev libc++abi-9-dev"
       ],
       "old" => [
         "CXXFLAGS" => "-stdlib=libc++",
-        "INSTALL_CXX" => "libc++"
-          . MAP["env.OS_VER"]["ubuntu-20.04"]["env.CC_VND"]["clang"]["env.CC_VER"]["old"] . "-dev"
+        "INSTALL_CXX" => "libc++-8-dev libc++abi-8-dev"
       ],
     ]
   ],
index 1599bed7fde5e2fdec034434addc9f84ce11998d..9d9c6a3613e1e91c4a3aa4b02e858bed627ce1a2 100644 (file)
@@ -446,14 +446,14 @@ jobs:
           echo CC="clang-9" >> ${GITHUB_ENV}
           echo CXX="clang++-9" >> ${GITHUB_ENV}
           echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}
-          echo INSTALL_CXX="libc++-9-dev" >> ${GITHUB_ENV}
+          echo INSTALL_CXX="libc++-9-dev libc++abi-9-dev" >> ${GITHUB_ENV}
       - name: Prepare environment (for old clang on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='clang') && (env.CC_VER=='old')
         run: |
           echo CC="clang-8" >> ${GITHUB_ENV}
           echo CXX="clang++-8" >> ${GITHUB_ENV}
           echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}
-          echo INSTALL_CXX="libc++-8-dev" >> ${GITHUB_ENV}
+          echo INSTALL_CXX="libc++-8-dev libc++abi-8-dev" >> ${GITHUB_ENV}
       - name: Prepare environment (for new gnu on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
         run: |