forked from LunarG/VulkanTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
155 lines (134 loc) · 3.68 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Windows Build Configuration for AppVeyor
# http://www.appveyor.com/docs/appveyor-yml
#
# build version format
version: "{build}"
# Free accounts have a max of 1, but ask anyway.
max_jobs: 4
platform:
- Win32
- x64
configuration:
- Debug
- Release
image:
- Visual Studio 2015
- Visual Studio 2017
- Visual Studio 2019
for:
-
matrix:
only:
- configuration: Debug
platform: Win32
image: Visual Studio 2015
environment:
PYTHON: C:\Python35
QTDIR: C:\Qt\5.9.9\msvc2015
PLATFORM_ARGUMENT: --32
CONFIGURATION_ARGUMENT: --debug
init:
# For building vkconfig with qmake
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat"
# Multithreaded NMake
- set CL=/MP
build_script:
- echo Building platform=%PLATFORM% configuration=%CONFIGURATION%
- echo Build Vulkan Configurator with Qt build system
- cd ../vkconfig
- qmake vkconfig.pro
- nmake /NOLOGO /S # silent messages
-
matrix:
only:
- configuration: Release
platform: x64
image: Visual Studio 2017
environment:
PYTHON: C:\Python35
QTDIR: C:\Qt\5.9.9\msvc2017_64
PLATFORM_ARGUMENT: --64
CONFIGURATION_ARGUMENT: --release
init:
# For building vkconfig with qmake
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
# Multithreaded NMake
- set CL=/MP
-
matrix:
only:
- configuration: Debug
platform: x64
image: Visual Studio 2019
environment:
PYTHON: C:\Python35
QTDIR: C:\Qt\5.15.1\msvc2019_64
PLATFORM_ARGUMENT: --64
CONFIGURATION_ARGUMENT: --debug
init:
# For building vkconfig with qmake
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
# Multithreaded NMake
- set CL=/MP
matrix:
exclude:
- configuration: Release
platform: Win32
image: Visual Studio 2015
- configuration: Release
platform: x64
image: Visual Studio 2015
- configuration: Debug
platform: x64
image: Visual Studio 2015
- configuration: Release
platform: Win32
image: Visual Studio 2017
- configuration: Debug
platform: Win32
image: Visual Studio 2017
- configuration: Debug
platform: x64
image: Visual Studio 2017
- configuration: Release
platform: Win32
image: Visual Studio 2019
- configuration: Debug
platform: Win32
image: Visual Studio 2019
- configuration: Release
platform: x64
image: Visual Studio 2019
branches:
only:
- master
install:
# Python
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
# Qt
- echo Qt path %QTDIR%\bin
- set PATH=%QTDIR%\bin;%PATH%
before_build:
- echo %IMAGE%
- cmake --version
- python --version
- qmake --version
- git --version
# Update external
- echo Update external sources %PLATFORM_ARGUMENT% %CONFIGURATION_ARGUMENT%
- update_external_sources.bat %PLATFORM_ARGUMENT% %CONFIGURATION_ARGUMENT%
- echo Build VulkanTools deps %CONFIGURATION% %PLATFORM%
- python scripts/update_deps.py --config %CONFIGURATION% --arch %PLATFORM%
- mkdir build
- cd build
- cmake -A %PLATFORM% -C ../helper.cmake ..
build:
parallel: true
verbosity: quiet
build_script:
- echo Building platform=%PLATFORM% configuration=%CONFIGURATION%
- echo Build Vulkan Configurator, layers and VIA with cmake
- cd ../build
- cmake --build . --parallel --config %CONFIGURATION% -- /m /v:minimal
test_script:
ctest --parallel 8 --output-on-failure -C %CONFIGURATION%