forked from KhronosGroup/OpenXR-Hpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
45 lines (37 loc) · 1.52 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
version: 1.0.1.{build}
image: Visual Studio 2017
environment:
VULKAN_SDK: c:\VulkanSDK\1.1.106.0
VKSDKURL: https://sdk.lunarg.com/sdk/download/1.1.106.0/windows/VulkanSDK-1.1.106.0-Installer.exe
VKSDKINSTALLER: c:\tools\vksdk1.1.106.0.exe
matrix:
# 32-bit
- VCVARS: vcvarsamd64_x86
VCPKG_PLATFORM: x86-windows
# 64-bit
- VCVARS: vcvars64
VCPKG_PLATFORM: x64-windows
matrix:
fast_finish: true # finish immediately once one of the jobs fails
# fetch repository as zip archive
shallow_clone: true # default is "false"
cache:
- c:\VulkanSDK\1.1.106.0
install:
- choco install -y ninja
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Download and install Vulkan SDK if not cached - the "Start-Process" is to not continue until install is done
- ps: >-
if (-not (Test-Path "$env:VULKAN_SDK/Include/vulkan/vulkan.h")) {
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($env:VKSDKURL, $env:VKSDKINSTALLER)
Start-Process $env:VKSDKINSTALLER -ArgumentList "/S" -Wait }
# for future use if we need vcpkg
# -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
build_script:
- cmd: >-
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\%VCVARS%.bat" &&
cmake -GNinja -Bbuild -H. -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=C:/Python37-x64/python.exe &&
cd build &&
ninja &&
cd ..