-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
66 lines (58 loc) · 2.38 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
version: '0.13.7{build}'
clone_depth: 5
build:
parallel: true
verbosity: minimal
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
ARCHITECTURE: x64
GEN: "Visual Studio 15 2017 Win64"
CFG: Release
BUILD_OUT: "x64-Release"
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# platform: x86
# ARCHITECTURE: x86
# GEN: "Visual Studio 15 2017"
# CFG: Release
# BUILD_OUT: "x86-Release"
VULKAN_SDK_URL: https://sdk.lunarg.com/sdk/download/1.1.126.0/windows/vulkan-sdk.exe?Human=true;u=
VULKAN_SDK: "C:\\VulkanSDK\\1.1.126.0"
OPENAL_SDK_URL: https://openal-soft.org/openal-binaries/openal-soft-1.20.0-bin.zip
OPENALDIR: "C:\\openal-soft"
NINJA_URL: https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip
MSVC_HOME: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community"
cache:
- C:\Tools\vcpkg\installed
install:
- git submodule update --init --recursive
# Get Vulkan SDK
- appveyor DownloadFile %VULKAN_SDK_URL% -FileName vulkan-sdk.exe
- .\vulkan-sdk.exe /S
# Get OpenAL SDK
- appveyor DownloadFile %OPENAL_SDK_URL% -FileName openal-soft.zip
- 7z x openal-soft.zip && del /f openal-soft.zip
- move "openal-soft-*" %OPENALDIR%
# Get Ninja
- appveyor DownloadFile %NINJA_URL% -FileName ninja.zip
- 7z x ninja.zip -oC:\ninja > nul
# Sets the path
- set PATH=C:\ninja;C:\Python36;%PATH%
# VCPKG prebuilt & cached dependencies
- vcpkg install glfw3:%platform%-windows freetype:%platform%-windows bullet3:%platform%-windows physfs:%platform%-windows gtest:%platform%-windows # openal-soft:%platform%-windows glslang:%platform%-windows
build_script:
- call "%MSVC_HOME%\VC\Auxiliary\Build\vcvarsall.bat" %ARCHITECTURE%
- mkdir Build\%BUILD_OUT% && cd Build\%BUILD_OUT%
- cmake ../../ -GNinja -DCMAKE_BUILD_TYPE=%CFG% -Denable-pkgconfig=0 -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DACID_LINK_RESOURCES=OFF
- ninja
- ninja install
- cd ../../
after_build:
- mkdir Artifacts\%CFG%_%ARCHITECTURE%
- xcopy Build\%BUILD_OUT%\bin Artifacts\%CFG%_%ARCHITECTURE%\ /s/h/e/k/f/c
- xcopy Resources Artifacts\%CFG%_%ARCHITECTURE%\Resources\Engine\ /s/h/e/k/f/c
artifacts:
- path: Artifacts\%CFG%_%ARCHITECTURE%\
name: "Examples $(appveyor_build_version) (%CFG% %ARCHITECTURE%)"