-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
43 lines (34 loc) · 924 Bytes
/
.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
42
43
image:
- Visual Studio 2019
# Build only on the master branch, and for PRs
branches:
only:
- master
build:
parallel: true
verbosity: detailed
configuration:
- Debug
- Release
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- platform: x64
cache:
- C:\Tools\vcpkg\installed
init:
- echo Appveyor Image = %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set "generator=Visual Studio 16 2019" && set "toolset=v142" )
- echo Generator = %generator%
install:
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- cd %appveyor_build_folder%
- vcpkg install boost-asio:%platform%-windows
- vcpkg install boost-range:%platform%-windows
build_script:
- mkdir build
- cd build
- cmake -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- cmake --build . --config %configuration%