-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
61 lines (51 loc) · 1.76 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
# Specify version format
version: "1.0.0.{build}"
# Image to use
image: Visual Studio 2017
# Build matrix
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_COMPILER: Visual Studio 15 2017 Win64
CMAKE_COMPILER_TARGET: host=x64
CMAKE_SYSTEM_VERSION: 10.0.16299.91
CPACK_SYSTEM_NAME: win64
APPVEYOR_SAVE_CACHE_ON_ERROR: true
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# CMAKE_COMPILER: Visual Studio 15 2017 Win64
# CMAKE_COMPILER_TARGET: host=x64
# CMAKE_SYSTEM_VERSION: 10.0.16299.91
# CPACK_SYSTEM_NAME: win64
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Allow to fail on first error in matrix
matrix:
fast_finish: true
install:
# Install VCPKG
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- cd %APPVEYOR_BUILD_FOLDER%
- if exist c:/vcpkg_cache.tgz (tar -C C:/. -zxf c:/vcpkg_cache.tgz --force-local) ^& exit 0
# Install FFMPEG and SDL2
- git submodule update --init --recursive
- nuget install SDL2 -OutputDirectory deps -ExcludeVersion -NoCache
- nuget install FFmpeg.Nightly -OutputDirectory deps -ExcludeVersion -NoCache
- C:/Python36/Scripts/pip3.6.exe install psutil
- C:/Python36/python scripts/build.py "vcpkg install grpc"
- vcpkg integrate install
before_build:
- mkdir build
- cd build
- echo %cd%
- cmake "-DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake" ..
build_script:
- cmake --build .
# Test scripts
test: off
cache:
- C:/vcpkg_cache.tgz