-
Notifications
You must be signed in to change notification settings - Fork 93
/
appveyor.yml
72 lines (63 loc) · 2.2 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
clone_depth: 10
environment:
matrix:
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# VSVER: Visual Studio 14 2015 Win64
# Architecture: x86_amd64
# VCPREFIX:'C:\Program Files (x86)\Microsoft Visual Studio 14.0'
# VCVARS: 'VC\vcvarsall.bat'
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VSVER: Visual Studio 15 2017 Win64
VCPREFIX: 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Community'
VCVARS: 'VC/Auxiliary/Build/vcvars64.bat'
configuration: Release
os: Visual Studio 2015
install:
- ps: $env:VCVARSALL = "`"$env:VCPREFIX/$env:VCVARS`" $Architecture"
- call %VCVARSALL%
- vcpkg install armadillo:x64-windows
- vcpkg integrate install
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- git clone https://github.com/mlpack/mlpack.git --depth 1
- cd mlpack
- mkdir build && cd build
- >
cmake -G "%VSVER%"
-DDEBUG=OFF -DPROFILE=OFF
-DUSE_OPENMP=OFF
-DBUILD_CLI_EXECUTABLES=OFF
-DBUILD_JULIA_BINDINGS=OFF
-DBUILD_PYTHON_BINDINGS=OFF
-DBUILD_TESTS=OFF
-DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- >
cmake --build . --
/verbosity:minimal /nologo /p:Configuration=Release;Platform=x64
- cd %APPVEYOR_BUILD_FOLDER% && mkdir build && cd build
- ps: $env:MLPACK_LIB = "mlpack/build/Release/mlpack.lib"
- ps: $env:MLPACK_INCLUDE = "mlpack/build/include"
- ps: $env:MLPACK_LIB = "$env:APPVEYOR_BUILD_FOLDER/$env:MLPACK_LIB"
- ps: $env:MLPACK_INCLUDE = "$env:APPVEYOR_BUILD_FOLDER/$env:MLPACK_INCLUDE"
# TODO: use AppVeyor to build examples from Makefiles (or similar)
# - >
# cmake -G "%VSVER%"
# -DDEBUG=OFF -DPROFILE=OFF
# -DMLPACK_LIBRARY:FILEPATH=%MLPACK_LIB%
# -DMLPACK_INCLUDE_DIR:PATH=%MLPACK_INCLUDE%
# -DBUILD_PYTHON_BINDINGS=OFF -DCMAKE_BUILD_TYPE=Release
# -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
# - >
# cmake --build . --
# /verbosity:minimal /nologo /p:Configuration=Release;Platform=x64
artifacts:
# - path: '**\*.zip'
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: false
on_build_status_changed: true
cache:
- c:\tools\vcpkg\installed\