-
Notifications
You must be signed in to change notification settings - Fork 38
/
.appveyor.yml
49 lines (38 loc) · 1.11 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
version: "{build}"
image:
- Visual Studio 2019
platform: x64
cache:
# Cache the Vulkan SDK to avoid freqently downloading from the LunarG server.
# Invalidate the cache if .appveyor.yml is changed.
- C:\VulkanSDK -> .appveyor.yml
configuration:
- Release
environment:
VULKAN_SDK_DIR: C:\VulkanSDK
VULKAN_SDK_VERSION: 1.2.182.0
max_jobs: 1
clone_folder: C:\projects\uVkCompute
branches:
only:
- main
install:
# Download the Vulkan SDK if it is not cached. Otherwise, just set up the
# proper environment variable to discover it.
- ps: >-
if (-not (Test-Path -Path "$ENV:VULKAN_SDK_DIR" -PathType Container)) {
cinst vulkan-sdk --version "$ENV:VULKAN_SDK_VERSION"
}
- ps: >-
[Environment]::SetEnvironmentVariable(
"VULKAN_SDK",
"$ENV:VULKAN_SDK_DIR\$ENV:VULKAN_SDK_VERSION",
"User"
)
before_build:
- cmd: git submodule update --init
build_script:
- cmd: refreshenv
- cmd: echo %VULKAN_SDK%
- cmd: cmake -G "Visual Studio 16 2019" -A %PLATFORM% -S . -B build-windows
- cmd: cmake --build build-windows --config %CONFIGURATION% -j 4