@@ -25,16 +25,19 @@ environment:
2525 CC : clang
2626 CXX : clang++
2727 SQLITE_ORM_CXX_STANDARD : " -DSQLITE_ORM_ENABLE_CXX_14=ON"
28+ cmake_build_parallel : --parallel
2829
2930 - job_name : gcc, C++14
3031 appveyor_build_worker_image : Ubuntu
3132 CC : gcc
3233 CXX : g++
3334 SQLITE_ORM_CXX_STANDARD : " -DSQLITE_ORM_ENABLE_CXX_14=ON"
35+ # gcc was stuck with a parallel build
36+ cmake_build_parallel : " "
3437
3538 # Representative for C++14
36- - job_name : Visual Studio 2022 , x64, C++14
37- appveyor_build_worker_image : Visual Studio 2022
39+ - job_name : Visual Studio 2017 , x64, C++14
40+ appveyor_build_worker_image : Visual Studio 2017
3841 platform : x64
3942 SQLITE_ORM_CXX_STANDARD : " "
4043
@@ -43,24 +46,30 @@ environment:
4346 CC : clang
4447 CXX : clang++
4548 SQLITE_ORM_CXX_STANDARD : " -DSQLITE_ORM_ENABLE_CXX_17=ON"
46-
47- - job_name : clang, C++20
48- appveyor_build_worker_image : Ubuntu
49- CC : clang
50- CXX : clang++
51- SQLITE_ORM_CXX_STANDARD : " -DSQLITE_ORM_ENABLE_CXX_20=ON"
49+ cmake_build_parallel : --parallel
5250
5351 - job_name : gcc, C++17
5452 appveyor_build_worker_image : Ubuntu
5553 CC : gcc
5654 CXX : g++
5755 SQLITE_ORM_CXX_STANDARD : " -DSQLITE_ORM_ENABLE_CXX_17=ON"
56+ cmake_build_parallel : " "
57+
58+ - job_name : clang, C++20 (with examples)
59+ appveyor_build_worker_image : Ubuntu
60+ CC : clang
61+ CXX : clang++
62+ SQLITE_ORM_CXX_STANDARD : " -DSQLITE_ORM_ENABLE_CXX_20=ON"
63+ # clang was stuck with a parallel build of examples
64+ cmake_build_parallel : " "
65+ cmake_build_examples : " -DBUILD_EXAMPLES=ON"
5866
5967 - job_name : gcc, C++20
6068 appveyor_build_worker_image : Ubuntu
6169 CC : gcc
6270 CXX : g++
6371 SQLITE_ORM_CXX_STANDARD : " -DSQLITE_ORM_ENABLE_CXX_20=ON"
72+ cmake_build_parallel : " "
6473
6574 - job_name : Visual Studio 2022, x64, C++17
6675 appveyor_build_worker_image : Visual Studio 2022
8594 # Windows
8695 matrix :
8796 only :
88- - appveyor_build_worker_image : Visual Studio 2015
97+ - appveyor_build_worker_image : Visual Studio 2017
8998 - appveyor_build_worker_image : Visual Studio 2022
9099 init :
91100 - |-
92101 echo %appveyor_build_worker_image% - %platform% - %configuration%
102+ cmake --version
93103 if "%platform%"=="x64" (set architecture=-A x64)
94104 if "%platform%"=="x86" (set architecture=-A Win32)
95105 if "%appveyor_build_worker_image%"=="Visual Studio 2022" (set generator="Visual Studio 17 2022" %architecture%)
96- if "%appveyor_build_worker_image%"=="Visual Studio 2015 " (set generator="Visual Studio 14 2015 " %architecture%)
106+ if "%appveyor_build_worker_image%"=="Visual Studio 2017 " (set generator="Visual Studio 15 2017 " %architecture%)
97107 install :
98108 - |-
99109 cd C:\Tools\vcpkg
@@ -102,16 +112,18 @@ for:
102112 C:\Tools\vcpkg\bootstrap-vcpkg.bat -disableMetrics
103113 C:\Tools\vcpkg\vcpkg integrate install
104114 set VCPKG_DEFAULT_TRIPLET=%platform%-windows
105- vcpkg install sqlite3 catch2
115+ vcpkg install sqlite3
116+ rem The Visual Studio 2017 build worker image comes with CMake 3.16 only, and sqlite_orm will build the Catch2 dependency from source
117+ if not "%appveyor_build_worker_image%"=="Visual Studio 2017" (vcpkg install catch2)
106118 before_build :
107119 - |-
108120 mkdir compile
109121 cd compile
110- cmake %SQLITE_ORM_CXX_STANDARD% .. -G %generator% -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
122+ cmake %SQLITE_ORM_CXX_STANDARD% -G %generator% -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
111123 # build examples, and run tests (ie make & make test)
112124 build_script :
113125 - |-
114- cmake --build . --config %configuration%
126+ cmake --build . --config %configuration% -- /m
115127 ctest --verbose --output-on-failure --build-config %configuration%
116128
117129 -
123135 - |-
124136 echo $appveyor_build_worker_image
125137 $CXX --version
138+ cmake --version
126139 # using custom vcpkg triplets for building and linking dynamic dependent libraries
127140 install :
128141 - |-
@@ -136,11 +149,11 @@ for:
136149 - |-
137150 mkdir compile
138151 cd compile
139- cmake $SQLITE_ORM_CXX_STANDARD .. -DCMAKE_TOOLCHAIN_FILE= $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake
152+ cmake $SQLITE_ORM_CXX_STANDARD $cmake_build_examples --toolchain $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake ..
140153 # build examples, and run tests (ie make & make test)
141154 build_script :
142155 - |-
143- cmake --build .
156+ cmake --build . $cmake_build_parallel
144157 ctest --verbose --output-on-failure
145158 -
146159 # macOS
151164 - |-
152165 echo $appveyor_build_worker_image
153166 $CXX --version
167+ cmake --version
154168 # using custom vcpkg triplets for building and linking dynamic dependent libraries
155169 install :
156170 - |-
162176 - |-
163177 mkdir compile
164178 cd compile
165- cmake $SQLITE_ORM_CXX_STANDARD .. -DCMAKE_TOOLCHAIN_FILE= $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake
179+ cmake $SQLITE_ORM_CXX_STANDARD --toolchain $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake ..
166180 # build examples, and run tests (ie make & make test)
167181 build_script :
168182 - |-
169- cmake --build .
183+ cmake --build . --parallel
170184 ctest --verbose --output-on-failure
0 commit comments