"CXX" => "mingw",
]
];
-const ENV = [
- "ubuntu-20.04" => [
- "gnu" => [
- "new" => [
- "INSTALL_CC" => "gcc-10",
- "INSTALL_CXX" => "g++-10",
- ]
- ],
- "clang" => [
- "new" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- "cur" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- "old" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- ]
- ],
- "ubuntu-18.04" => [
- "clang" => [
- "new" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- "cur" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- "old" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- ]
- ]
-];
const MAP = [
'env.OS_VER' => [
"ubuntu-20.04" => [
],
]
];
+const ENV = [
+ "ubuntu-20.04" => [
+ "gnu" => [
+ "new" => [
+ "INSTALL_CC" => "gcc-10",
+ "INSTALL_CXX" => "g++-10",
+ ]
+ ],
+ "clang" => [
+ "new" => [
+ "CXXFLAGS" => "-stdlib=libc++"
+ ],
+ "cur" => [
+ "CXXFLAGS" => "-stdlib=libc++",
+ "INSTALL_CXX" => "libc++"
+ . MAP["env.OS_VER"]["ubuntu-20.04"]["env.CC_VND"]["clang"]["env.CC_VER"]["cur"] . "-dev"
+ ],
+ "old" => [
+ "CXXFLAGS" => "-stdlib=libc++",
+ "INSTALL_CXX" => "libc++"
+ . MAP["env.OS_VER"]["ubuntu-20.04"]["env.CC_VND"]["clang"]["env.CC_VER"]["old"] . "-dev"
+ ],
+ ]
+ ],
+ "ubuntu-18.04" => [
+ "clang" => [
+ "new" => [
+ "CXXFLAGS" => "-stdlib=libc++"
+ ],
+ "cur" => [
+ "CXXFLAGS" => "-stdlib=libc++"
+ ],
+ "old" => [
+ "CXXFLAGS" => "-stdlib=libc++"
+ ],
+ ]
+ ]
+];
/**
* @var bool $splat_map false = no splat map, null = default splat map, true = full splat map
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}
- 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}
- 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: |