forked from OlehKulykov/PLzmaSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (40 loc) · 1.27 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
version: 1.2.0.{build}
os: Visual Studio 2015
# Do not build on tags (GitHub only)
skip_tags: true
# branches to build
branches:
only:
- master
- tmp
- multivolume
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
#platform:
# - x86
# - x64
environment:
matrix:
- platform: x86
CMAKE_ARGS: -G"Visual Studio 14" -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libplzma\libplzma-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DLIBPLZMA_OPT_BUILD_NUMBER=%APPVEYOR_BUILD_NUMBER%
- platform: x64
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libplzma\libplzma-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DLIBPLZMA_OPT_BUILD_NUMBER=%APPVEYOR_BUILD_NUMBER%
configuration: Release
# clone directory
clone_folder: c:\dev\libplzma
# scripts that run after cloning repository
install:
- cd c:\dev\libplzma
- md libplzma-install-win-%PLATFORM%
build:
parallel: true
verbosity: detailed
build_script:
- cd c:\dev\libplzma
- md build
- cd build
- cmake %CMAKE_ARGS% ..
- cmake --build . --config Release --parallel 4
- copy C:\dev\libplzma\build\Release\libplzma.dll C:\dev\libplzma\build\cmake_tests\Release\libplzma.dll
- ctest --verbose
- cmake --build . --config Release --target Install
- cd ..