-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
81 lines (68 loc) · 2.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.0.0-{build}'
image:
- Visual Studio 2017
branches:
only:
- develop
- master
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
VCPKG_DIR: c:\tools\vcpkg
matrix:
- platform: x86
configuration: Debug
- platform: x64
configuration: Debug
- platform: x86
configuration: Release
- platform: x64
configuration: Release
build:
verbosity: minimal
cache:
- c:\tools\vcpkg\installed
init:
- set TARGET_PLATFORM=
- if "%platform%"=="x86" ( set TARGET_PLATFORM=Win32)
- if "%platform%"=="x64" ( set TARGET_PLATFORM=x64)
- if "%platform%"=="x86" ( set TARGET_ARCH=x86)
- if "%platform%"=="x64" ( set TARGET_ARCH=amd64)
- if "%configuration%"=="Debug" ( set CONFIGURATION_LC=debug)
- if "%configuration%"=="Release" ( set CONFIGURATION_LC=release)
- echo %TARGET_PLATFORM%
- echo %TARGET_ARCH%
- echo %CONFIGURATION_LC%
install:
- cd %VCPKG_DIR%
- git pull https://github.com/et-nik/vcpkg master
- .\bootstrap-vcpkg.bat
- vcpkg version
- vcpkg install curl:%platform%-windows
restclient-cpp:%platform%-windows
binn:%platform%-windows
jsoncpp:%platform%-windows
cpp-httplib:%platform%-windows
# Boost libraries
- vcpkg install boost-system:%platform%-windows
boost-filesystem:%platform%-windows
boost-iostreams:%platform%-windows
boost-process:%platform%-windows
boost-property-tree:%platform%-windows
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule -q update --init
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd.bat" -arch=%TARGET_ARCH% -host_arch=%TARGET_ARCH%
build_script:
- mkdir build
- cd build
- cmake -G "Ninja"
-DCMAKE_TOOLCHAIN_FILE=%VCPKG_DIR%/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=%platform%-windows
-DVCPKG_BUILD_TYPE=%CONFIGURATION_LC%
-DCMAKE_BUILD_TYPE=%configuration%
-DBUILD_TESTING=ON ..
- cmake --build . --config %configuration%
- ctest
after_build:
- 7z a gameap-daemon-%platform%-%CONFIGURATION_LC%.zip %APPVEYOR_BUILD_FOLDER%\build\bin\*.exe %APPVEYOR_BUILD_FOLDER%\build\bin\*.dll
artifacts:
- path: build/gameap-daemon-%platform%-%CONFIGURATION_LC%.zip