@@ -4,7 +4,7 @@ name: skyr-url CI
4
4
on : [ push, pull_request ]
5
5
6
6
env :
7
- CMAKE_VERSION : 3.18.6
7
+ CMAKE_VERSION : 3.21.7
8
8
NINJA_VERSION : 1.11.0
9
9
10
10
jobs :
@@ -80,14 +80,14 @@ jobs:
80
80
# Clang-10
81
81
- {
82
82
name : " Linux Clang 10 Debug (C++20)" , artifact: "Linux.tar.xz",
83
- os : ubuntu-latest ,
83
+ os : ubuntu-20.04 ,
84
84
build_type : Debug,
85
85
cc : " clang-10" , cxx: "clang++-10",
86
86
cxx_standard : 20
87
87
}
88
88
- {
89
89
name : " Linux Clang 10 Release (C++20)" , artifact: "Linux.tar.xz",
90
- os : ubuntu-latest ,
90
+ os : ubuntu-20.04 ,
91
91
build_type : RelWithDebInfo,
92
92
cc : " clang-10" , cxx: "clang++-10",
93
93
cxx_standard : 20,
@@ -96,14 +96,14 @@ jobs:
96
96
# Clang-11
97
97
- {
98
98
name : " Linux Clang 11 Debug (C++20)" , artifact: "Linux.tar.xz",
99
- os : ubuntu-latest ,
99
+ os : ubuntu-20.04 ,
100
100
build_type : Debug,
101
101
cc : " clang-11" , cxx: "clang++-11",
102
102
cxx_standard : 20,
103
103
}
104
104
- {
105
105
name : " Linux Clang 11 Release (C++20)" , artifact: "Linux.tar.xz",
106
- os : ubuntu-latest ,
106
+ os : ubuntu-20.04 ,
107
107
build_type : RelWithDebInfo,
108
108
cc : " clang-11" , cxx: "clang++-11",
109
109
cxx_standard : 20,
@@ -112,14 +112,14 @@ jobs:
112
112
# Clang-12
113
113
- {
114
114
name : " Linux Clang 12 Debug (C++20)" , artifact: "Linux.tar.xz",
115
- os : ubuntu-latest ,
115
+ os : ubuntu-20.04 ,
116
116
build_type : Debug,
117
117
cc : " clang-12" , cxx: "clang++-12",
118
118
cxx_standard : 20,
119
119
}
120
120
- {
121
121
name : " Linux Clang 12 Release (C++20)" , artifact: "Linux.tar.xz",
122
- os : ubuntu-latest ,
122
+ os : ubuntu-20.04 ,
123
123
build_type : RelWithDebInfo,
124
124
cc : " clang-12" , cxx: "clang++-12",
125
125
cxx_standard : 20,
@@ -238,16 +238,16 @@ jobs:
238
238
239
239
if ("${{ runner.os }}" STREQUAL "Windows")
240
240
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")
243
243
elseif ("${{ runner.os }}" STREQUAL "Linux")
244
244
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")
247
247
elseif ("${{ runner.os }}" STREQUAL "macOS")
248
248
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")
251
251
endif()
252
252
253
253
set(ninja_url "https://github.com/ninja-build/ninja/releases/download/v${ninja_version}/ninja-${ninja_suffix}")
@@ -267,6 +267,7 @@ jobs:
267
267
COMMAND chmod +x ${cmake_dir}/cmake
268
268
)
269
269
270
+
270
271
- name : Install GCC 7
271
272
id : install_gcc_7
272
273
if : startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-7' )
@@ -331,6 +332,7 @@ jobs:
331
332
wget https://apt.llvm.org/llvm.sh
332
333
chmod +x llvm.sh
333
334
sudo ./llvm.sh 11
335
+ sudo apt-get install -y libc++-11-dev libc++abi-11-dev
334
336
335
337
- name : Install Clang 12
336
338
id : install_clang_12
@@ -341,6 +343,7 @@ jobs:
341
343
wget https://apt.llvm.org/llvm.sh
342
344
chmod +x llvm.sh
343
345
sudo ./llvm.sh 12
346
+ sudo apt-get install -y libc++-12-dev libc++abi-12-dev libunwind-12-dev
344
347
345
348
- name : Install Clang 14
346
349
id : install_clang_14
@@ -365,7 +368,7 @@ jobs:
365
368
git checkout -b master origin/master
366
369
export
367
370
./bootstrap-vcpkg.sh
368
- ./vcpkg install tl-expected range-v3 catch2 nlohmann-json fmt
371
+ ./vcpkg install fmt
369
372
370
373
- name : Install vcpkg (MacOS)
371
374
id : vcpkg_macos
@@ -381,7 +384,7 @@ jobs:
381
384
git checkout -b master origin/master
382
385
export
383
386
./bootstrap-vcpkg.sh
384
- ./vcpkg install tl-expected range-v3 catch2 nlohmann-json fmt
387
+ ./vcpkg install fmt
385
388
386
389
- name : Install vcpkg (Windows)
387
390
id : vcpkg_windows
@@ -391,8 +394,8 @@ jobs:
391
394
git clone https://github.com/microsoft/vcpkg.git ${Env:GITHUB_WORKSPACE}\vcpkg
392
395
cd ${Env:GITHUB_WORKSPACE}\vcpkg
393
396
.\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
+
396
399
397
400
- name : Configure
398
401
shell : cmake -P {0}
@@ -440,6 +443,27 @@ jobs:
440
443
set(BUILD_V2 ON)
441
444
endif()
442
445
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
+
443
467
execute_process(
444
468
COMMAND ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake
445
469
-S .
@@ -451,8 +475,9 @@ jobs:
451
475
-D skyr_BUILD_DOCS=OFF
452
476
-D skyr_BUILD_EXAMPLES=OFF
453
477
-D skyr_BUILD_V2=${BUILD_V2}
478
+ -D skyr_BUILD_WITH_LLVM_LIBCXX=${USE_LLVM}
479
+ -D SKY_VERBOSE_BUILD=ON
454
480
-D CMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
455
- -D CMAKE_TOOLCHAIN_FILE=$ENV{GITHUB_WORKSPACE}/vcpkg/scripts/buildsystems/vcpkg.cmake
456
481
-D CMAKE_INSTALL_PREFIX=$ENV{GITHUB_WORKSPACE}/install
457
482
RESULT_VARIABLE result
458
483
)
0 commit comments