@@ -4,7 +4,7 @@ name: skyr-url CI
44on : [ push, pull_request ]
55
66env :
7- CMAKE_VERSION : 3.18.6
7+ CMAKE_VERSION : 3.21.7
88 NINJA_VERSION : 1.11.0
99
1010jobs :
@@ -80,14 +80,14 @@ jobs:
8080 # Clang-10
8181 - {
8282 name : " Linux Clang 10 Debug (C++20)" , artifact: "Linux.tar.xz",
83- os : ubuntu-latest ,
83+ os : ubuntu-20.04 ,
8484 build_type : Debug,
8585 cc : " clang-10" , cxx: "clang++-10",
8686 cxx_standard : 20
8787 }
8888 - {
8989 name : " Linux Clang 10 Release (C++20)" , artifact: "Linux.tar.xz",
90- os : ubuntu-latest ,
90+ os : ubuntu-20.04 ,
9191 build_type : RelWithDebInfo,
9292 cc : " clang-10" , cxx: "clang++-10",
9393 cxx_standard : 20,
@@ -96,14 +96,14 @@ jobs:
9696 # Clang-11
9797 - {
9898 name : " Linux Clang 11 Debug (C++20)" , artifact: "Linux.tar.xz",
99- os : ubuntu-latest ,
99+ os : ubuntu-20.04 ,
100100 build_type : Debug,
101101 cc : " clang-11" , cxx: "clang++-11",
102102 cxx_standard : 20,
103103 }
104104 - {
105105 name : " Linux Clang 11 Release (C++20)" , artifact: "Linux.tar.xz",
106- os : ubuntu-latest ,
106+ os : ubuntu-20.04 ,
107107 build_type : RelWithDebInfo,
108108 cc : " clang-11" , cxx: "clang++-11",
109109 cxx_standard : 20,
@@ -112,14 +112,14 @@ jobs:
112112 # Clang-12
113113 - {
114114 name : " Linux Clang 12 Debug (C++20)" , artifact: "Linux.tar.xz",
115- os : ubuntu-latest ,
115+ os : ubuntu-20.04 ,
116116 build_type : Debug,
117117 cc : " clang-12" , cxx: "clang++-12",
118118 cxx_standard : 20,
119119 }
120120 - {
121121 name : " Linux Clang 12 Release (C++20)" , artifact: "Linux.tar.xz",
122- os : ubuntu-latest ,
122+ os : ubuntu-20.04 ,
123123 build_type : RelWithDebInfo,
124124 cc : " clang-12" , cxx: "clang++-12",
125125 cxx_standard : 20,
@@ -238,16 +238,16 @@ jobs:
238238
239239 if ("${{ runner.os }}" STREQUAL "Windows")
240240 set(ninja_suffix "win.zip")
241- set(cmake_suffix "win64-x64 .zip")
242- set(cmake_dir "cmake-${cmake_version}-win64-x64 /bin")
241+ set(cmake_suffix "windows-x86_64 .zip")
242+ set(cmake_dir "cmake-${cmake_version}-windows-x86_64 /bin")
243243 elseif ("${{ runner.os }}" STREQUAL "Linux")
244244 set(ninja_suffix "linux.zip")
245- set(cmake_suffix "Linux -x86_64.tar.gz")
246- set(cmake_dir "cmake-${cmake_version}-Linux -x86_64/bin")
245+ set(cmake_suffix "linux -x86_64.tar.gz")
246+ set(cmake_dir "cmake-${cmake_version}-linux -x86_64/bin")
247247 elseif ("${{ runner.os }}" STREQUAL "macOS")
248248 set(ninja_suffix "mac.zip")
249- set(cmake_suffix "Darwin-x86_64 .tar.gz")
250- set(cmake_dir "cmake-${cmake_version}-Darwin-x86_64 /CMake.app/Contents/bin")
249+ set(cmake_suffix "macos10.10-universal .tar.gz")
250+ set(cmake_dir "cmake-${cmake_version}-macos10.10-universal /CMake.app/Contents/bin")
251251 endif()
252252
253253 set(ninja_url "https://github.com/ninja-build/ninja/releases/download/v${ninja_version}/ninja-${ninja_suffix}")
@@ -267,6 +267,7 @@ jobs:
267267 COMMAND chmod +x ${cmake_dir}/cmake
268268 )
269269
270+
270271 - name : Install GCC 7
271272 id : install_gcc_7
272273 if : startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-7' )
@@ -331,6 +332,7 @@ jobs:
331332 wget https://apt.llvm.org/llvm.sh
332333 chmod +x llvm.sh
333334 sudo ./llvm.sh 11
335+ sudo apt-get install -y libc++-11-dev libc++abi-11-dev
334336
335337 - name : Install Clang 12
336338 id : install_clang_12
@@ -341,6 +343,7 @@ jobs:
341343 wget https://apt.llvm.org/llvm.sh
342344 chmod +x llvm.sh
343345 sudo ./llvm.sh 12
346+ sudo apt-get install -y libc++-12-dev libc++abi-12-dev libunwind-12-dev
344347
345348 - name : Install Clang 14
346349 id : install_clang_14
@@ -365,7 +368,7 @@ jobs:
365368 git checkout -b master origin/master
366369 export
367370 ./bootstrap-vcpkg.sh
368- ./vcpkg install tl-expected range-v3 catch2 nlohmann-json fmt
371+ ./vcpkg install fmt
369372
370373 - name : Install vcpkg (MacOS)
371374 id : vcpkg_macos
@@ -381,7 +384,7 @@ jobs:
381384 git checkout -b master origin/master
382385 export
383386 ./bootstrap-vcpkg.sh
384- ./vcpkg install tl-expected range-v3 catch2 nlohmann-json fmt
387+ ./vcpkg install fmt
385388
386389 - name : Install vcpkg (Windows)
387390 id : vcpkg_windows
@@ -391,8 +394,8 @@ jobs:
391394 git clone https://github.com/microsoft/vcpkg.git ${Env:GITHUB_WORKSPACE}\vcpkg
392395 cd ${Env:GITHUB_WORKSPACE}\vcpkg
393396 .\bootstrap-vcpkg.bat
394- vcpkg install tl-expected range-v3 catch2 nlohmann-json fmt --triplet x64-windows
395- vcpkg integrate install
397+ vcpkg install fmt --triplet x64-windows
398+
396399
397400 - name : Configure
398401 shell : cmake -P {0}
@@ -440,6 +443,27 @@ jobs:
440443 set(BUILD_V2 ON)
441444 endif()
442445
446+ set(USE_LLVM OFF)
447+ if("${{ matrix.config.name }}" STREQUAL "macOS Clang Debug (C++17)" OR
448+ "${{ matrix.config.name }}" STREQUAL "macOS Clang Release (C++17)" OR
449+ "${{ matrix.config.name }}" STREQUAL "macOS Clang Debug (C++20)" OR
450+ "${{ matrix.config.name }}" STREQUAL "macOS Clang Release (C++20)" OR
451+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 11 Debug (C++17)" OR
452+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 11 Release (C++17)" OR
453+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 12 Debug (C++17)" OR
454+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 12 Release (C++17)" OR
455+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 14 Debug (C++17)" OR
456+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 14 Release (C++17)" OR
457+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 11 Debug (C++20)" OR
458+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 11 Release (C++20)" OR
459+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 12 Debug (C++20)" OR
460+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 12 Release (C++20)" OR
461+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 14 Debug (C++20)" OR
462+ "${{ matrix.config.name }}" STREQUAL "Linux Clang 14 Release (C++20)"
463+ )
464+ set(USE_LLVM ON)
465+ endif()
466+
443467 execute_process(
444468 COMMAND ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake
445469 -S .
@@ -451,8 +475,9 @@ jobs:
451475 -D skyr_BUILD_DOCS=OFF
452476 -D skyr_BUILD_EXAMPLES=OFF
453477 -D skyr_BUILD_V2=${BUILD_V2}
478+ -D skyr_BUILD_WITH_LLVM_LIBCXX=${USE_LLVM}
479+ -D SKY_VERBOSE_BUILD=ON
454480 -D CMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
455- -D CMAKE_TOOLCHAIN_FILE=$ENV{GITHUB_WORKSPACE}/vcpkg/scripts/buildsystems/vcpkg.cmake
456481 -D CMAKE_INSTALL_PREFIX=$ENV{GITHUB_WORKSPACE}/install
457482 RESULT_VARIABLE result
458483 )
0 commit comments