-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
appveyor.yml
60 lines (39 loc) · 1.14 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: 1.4.7.{build}
os: Visual Studio 2019
# Do not build on tags (GitHub only)
skip_tags: true
# branches to build
branches:
only:
- master
- tmp
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
#platform:
# - x86
# - x64
environment:
matrix:
- platform: x86
CMAKE_ARGS: -A Win32 -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: -A x64 -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:
- cmake --version
- cd c:\dev\libplzma
- md build
- cd build
- cmake %CMAKE_ARGS% ..
- cmake --build . --config Release --parallel 4
- ctest --verbose
- cmake --build . --config Release --target install
- cd ..