This repository has been archived by the owner on Apr 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
appveyor.yml
82 lines (53 loc) · 1.64 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
version: 1.2.4.{build}
os: Visual Studio 2015
# Do not build on tags (GitHub only)
skip_tags: true
# branches to build
branches:
only:
- master
- dev
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
#platform:
# - x86
# - x64
environment:
CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Release
matrix:
- platform: x86
CMAKE_ARGS: -G"Visual Studio 14" -DRWS_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\librws\librws-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release
- platform: x64
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DRWS_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\librws\librws-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release
configuration: Release
# clone directory
clone_folder: c:\dev\librws
# scripts that run after cloning repository
install:
- cd c:\dev\librws
- md librws-install-win-%PLATFORM%
build:
parallel: true
verbosity: detailed
build_script:
- cd c:\dev\librws
- md build
- cd build
- cmake %CMAKE_ARGS% ..
- cmake --build . --config Release
- cmake --build . --config Release --target Install
- cd ..
after_build:
- 7z a -t7z -mx=9 -xr!bin librws-win-%PLATFORM%-%APPVEYOR_REPO_BRANCH%-%APPVEYOR_BUILD_VERSION%.7z c:\dev\librws\librws-install-win-%PLATFORM%
artifacts:
- path: '*.7z'
deploy:
- provider: GitHub
release: $(appveyor_build_version)
description: 'Appveyor CI build artifacts. Compressed install path with binaries, libraries and configured headers'
auth_token:
secure: 9fCOXiEygRERkV9JN67Rqq6WFwdbSBIllYdZGYcSoFPj1oUAxk3aRi+bWv04l7M5
artifact: /.*\.7z/
draft: false
prerelease: true
on:
branch: master