-
Notifications
You must be signed in to change notification settings - Fork 257
/
.appveyor.yml
53 lines (44 loc) · 2 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
# Copyright (c) 2017-2024, The Khronos Group Inc.
#
# SPDX-License-Identifier: Apache-2.0
version: 1.1.43.{build}
image: Visual Studio 2017
environment:
VULKAN_SDK: c:\VulkanSDK\1.1.114.0
VKSDKURL: https://people.collabora.com/~rpavlik/ci_resources/vksdk-1.1.114.0-lite.7z
VKSDKPKG: c:\VulkanSDK\vksdk-1.1.114.0-lite.7z
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.114.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 extract a stripped-down Vulkan SDK if not cached - the "Start-Process" is to not continue until extraction is done
- ps: >-
if (-not (Test-Path "$env:VULKAN_SDK/Include/vulkan/vulkan.h")) {
mkdir c:\VulkanSDK
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($env:VKSDKURL, $env:VKSDKPKG)
Start-Process "c:\Program Files\7-Zip\7z" -ArgumentList "x", $env:VKSDKPKG, "-oC:\VulkanSDK" -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=RelWithDebInfo -DPython3_EXECUTABLE=C:/Python37-x64/python.exe -DBUILD_ALL_EXTENSIONS=ON &&
ninja -C build
- cmd: >-
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\%VCVARS%.bat" &&
cmake -GNinja -Bbuild -H. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDYNAMIC_LOADER=ON -DPython3_EXECUTABLE=C:/Python37-x64/python.exe -DBUILD_ALL_EXTENSIONS=ON &&
ninja -C build