-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
60 lines (46 loc) · 1.16 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
version: 0.1.{build}
image:
- Visual Studio 2017
- Visual Studio 2015
configuration:
- Debug
- Release
- StaticRelease
- StaticDebug
platform:
- x64
- x86
before_build:
- ps: >-
mkdir C:\sysroot
mkdir C:\sysroot\bin
mkdir C:\sysroot\include
mkdir C:\sysroot\lib
environment:
SYSROOT: C:\sysroot\
INCLUDE: C:\sysroot\include\
LIBS: C:\sysroot\libs\
build:
project: win32/libcalendars.sln
verbosity: detailed
after_build:
- ps: >-
$env:BUILD_ARCH = $env:PLATFORM
switch($env:CONFIGURATION)
{
"Debug" {$env:BUILD_TYPE = "debug-shared"}
"Release" {$env:BUILD_TYPE = "release-shared"}
"StaticDebug" {$env:BUILD_TYPE = "debug-static"}
"StaticRelease" {$env:BUILD_TYPE = "release-static"}
}
switch($env:APPVEYOR_BUILD_WORKER_IMAGE)
{
"Visual Studio 2017" {$env:BUILD_MSVC = "msvc14_1"}
"Visual Studio 2015" {$env:BUILD_MSVC = "msvc14"}
}
- cmd: 7z a .\%APPVEYOR_PROJECT_NAME%-%BUILD_ARCH%-%BUILD_MSVC%-%BUILD_TYPE%.zip C:\sysroot\*
artifacts:
- path: .\*.zip
type: zip
skip_commits:
message: /\[ci skip\]/