forked from acgetchell/CDT-plusplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
85 lines (68 loc) · 2.48 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
82
83
84
85
version: 0.1.8.{build}
skip_tags: true
skip_branch_with_pr: true
image:
- Visual Studio 2019
clone_folder: c:\projects\cdt-plusplus
shallow_clone: true
clone_script:
- cmd: >-
git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
&& cd %APPVEYOR_BUILD_FOLDER%
&& git checkout -qf %APPVEYOR_REPO_COMMIT%
&& git submodule update --init --recursive
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR : true
VCPKG_DEFAULT_TRIPLET: x64-windows
# VCPKG_ROOT: c:\tools\vcpkg
cache:
- c:\Users\appveyor\AppData\Local\vcpkg\archives\
- c:\tools\vcpkg\packages\
install:
# Setup vcpkg
- cd c:\tools\vcpkg
# - git clean -d -fx .
- git pull origin master --no-rebase
# - git reset --hard 56c0313
- .\bootstrap-vcpkg.bat
- set PATH=%PATH%;%VCPKG_ROOT%
- vcpkg integrate install
- cmake --version
# Install required libraries in classic mode
# - set VCPKG_INSTALL_ROOT=%APPVEYOR_BUILD_FOLDER%\vcpkg_installed
# - vcpkg install --x-install-root=%VCPKG_INSTALL_ROOT% catch2 docopt date fmt ms-gsl eigen3 pcg tbb tl-expected
# CGAL requires GMP which requires yasm-tool:x86-windows, even if you are using x64-windows.
# - vcpkg install --x-install-root=%VCPKG_INSTALL_ROOT% --recurse yasm-tool:x86-windows
# - vcpkg install --x-install-root=%VCPKG_INSTALL_ROOT% cgal
# Upgrade required libraries
# - vcpkg upgrade --no-dry-run --x-install-root=%VCPKG_INSTALL_ROOT%
# - vcpkg list --x-install-root=%VCPKG_INSTALL_ROOT%
# Setup Clang-cl
- set PATH=%PATH%;"C:\Program Files\LLVM\bin"
- clang-cl -v
- set CC=clang-cl -mrtm
- set CXX=clang-cl -mrtm
# Visual Studio 2019
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- set CMAKE_CXX_COMPILER="C:\Program Files\LLVM\bin\clang-cl"
platform:
- x64
configuration: Release
build:
verbosity: detailed
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- vcpkg install --feature-flags=manifests
build_script:
- cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -D ENABLE_CACHE=OFF -D CMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -S . -B build
- cmake --build build
#on_success:
# - cd build
# - ctest -VV
notifications:
- provider: Email
to:
on_build_status_changed: true
#on_failure:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))