forked from TheAssemblyArmada/Thyme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
97 lines (79 loc) · 2.84 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
# Specify version format
version: "{build}"
# build platform, i.e. Win32 (instead of x86), x64, Any CPU. This setting is optional.
platform:
- Win32
- x64
# specify custom environment variables
environment:
MSVC_DEFAULT_OPTIONS: ON
matrix:
- GENERATOR: "Visual Studio 15 2017"
CMAKE_OPTIONS: ""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- GENERATOR: "Visual Studio 15 2017"
CMAKE_OPTIONS: "-DSTANDALONE=ON"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
matrix:
exclude:
- platform: x64
CMAKE_OPTIONS: ""
allow_failures:
- platform: x64
configuration:
- Release
- Debug
cache:
- c:\projects\dxsdk_aug2007.exe
# scripts that are called at very beginning, before repo cloning
init:
- cmd: cmake --version
- cmd: msbuild /version
- git config --global core.autocrlf input
# clone directory
clone_folder: C:\projects\thyme
# branches to build
#branches:
# whitelist
#only:
#- master
#- develop
skip_commits:
files:
- docs/*
# scripts that run after cloning repository
install:
- cmd: cd C:\projects\thyme
- cmd: git submodule update --init --recursive
- ps: >-
$DXSDK_INSTALLER = "dxsdk_aug2007.exe";
$DXSDK_TMP = "dxsdk_aug2007_tmp.exe";
$DXSDK_URL = "https://download.microsoft.com/download/3/3/f/33f1af6e-c61b-4f14-a0de-3e9096ed4b3a/$DXSDK_INSTALLER";
$DXSDK_DIR = "c:\projects\dxsdk"
Set-Location c:\projects | Out-Null;
If (-Not (Test-Path "$DXSDK_INSTALLER")) {
& appveyor DownloadFile "$DXSDK_URL" -FileName "$DXSDK_TMP";
& 7z x -y "c:\projects\$DXSDK_TMP";
}
New-Item -ItemType directory -Path $DXSDK_DIR| Out-Null;
Set-Location $DXSDK_DIR | Out-Null;
& 7z x -y "c:\projects\$DXSDK_INSTALLER";
# scripts to run before build
before_build:
- cmd: cd C:\projects\thyme
- cmd: md build
- cmd: cd build
- cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR_NAME=%GENERATOR%
- cmd: if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=%GENERATOR% Win64
- cmd: cmake -G "%CMAKE_GENERATOR_NAME%" %CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=%configuration% -DDirectX_ROOT="c:\projects\dxsdk" ..
after_build:
- cmd: if "%CMAKE_OPTIONS%"=="" 7z a thyme.zip .\%configuration%\thyme.dll .\%configuration%\launchthyme.exe -tzip
- cmd: if "%CMAKE_OPTIONS%"=="-DSTANDALONE=ON" 7z a thyme.zip .\%configuration%\thyme.exe -tzip
artifacts:
- path: build/thyme.zip
name: zip-archive
build:
project: C:\projects\thyme\build\thyme.sln # path to Visual Studio solution or project
parallel: true # enable MSBuild parallel builds
verbosity: minimal # MSBuild verbosity level (quiet|minimal|normal|detailed)
test: off