forked from chfast/intx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
41 lines (35 loc) · 1.29 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "{build}"
image: Visual Studio 2017
branches:
only:
- master
- /release\/.*/
- appveyor
- hunter
environment:
matrix:
- VS_VER: 2019
CONFIGURATION: Debug
GENERATOR: Ninja
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- VS_VER: 2019
CONFIGURATION: Release
GENERATOR: Ninja
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- VS_VER: 2022
CONFIGURATION: Release
GENERATOR: Ninja
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
cache:
- C:\.hunter\_Base\Cache -> cmake\Hunter\init.cmake
install:
- cmake --version
before_build:
- if "%VS_VER%" == "2022" (call "%ProgramFiles%\Microsoft Visual Studio\%VS_VER%\Community\Common7\Tools\vsdevcmd" -arch=amd64)
- if not "%VS_VER%" == "2022" (call "%ProgramFiles(x86)%\Microsoft Visual Studio\%VS_VER%\Community\Common7\Tools\vsdevcmd" -arch=amd64)
- cmake -S . -B build -DINTX_BENCHMARKING=OFF -DNATIVE=ON -Wno-dev -G "%GENERATOR%" -DCMAKE_COMPILE_WARNING_AS_ERROR=TRUE -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DHUNTER_CONFIGURATION_TYPES=%CONFIGURATION% -DCMAKE_INSTALL_PREFIX=C:\install
build_script:
- cmake --build build --target install --parallel 1
- cmake --build build --target package
after_build:
- cd build && ctest -j4 --output-on-failure --schedule-random