forked from opentibiabr/otservbr-global-archived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
58 lines (45 loc) · 1.1 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
---
image: Visual Studio 2019
shallow_clone: true
# set clone depth
clone_depth: 1
# environment:
# APPVEYOR_SAVE_CACHE_ON_ERROR: true
platform:
- x64
configuration:
- Release
matrix:
fast_finish: true
only_commits:
files:
- src/
- vc14/
- .appveyor.yml
- cmake/
- CMakeLists.txt
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- .\vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%
before_build:
- cmd: |-
if not exist build mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake ..
cmake --build . --config Release
build:
project: C:\projects\otservbr-global\build\otbr.sln
verbosity: minimal
parallel: true
after_build:
- cd %APPVEYOR_BUILD_FOLDER%\build\bin
- 7z a -tzip otservbr-global.zip Release\
cache:
- C:\projects\otservbr-global\build\vcpkg_installed\
- C:\Users\appveyor\AppData\Local\vcpkg\archives
artifacts:
- path: \build\bin\otservbr-global.zip