forked from Return-To-The-Roots/s25client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (49 loc) · 1.72 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
# Copyright (C) 2005 - 2021 Settlers Freaks <sf-team at siedler25.org>
#
# SPDX-License-Identifier: GPL-2.0-or-later
version: 0.8.3.{build}
branches:
only:
- master
image:
- Visual Studio 2017
- Visual Studio 2019
configuration:
- Debug
- Release
platform:
- Win32
- x64
environment:
BOOST_ROOT: C:\Libraries\boost_1_73_0
GENERATOR: Visual Studio 16 2019
RTTR_DISABLE_ASSERT_BREAKPOINT: 1
matrix:
fast_finish: true
exclude:
- # Reduce build time, also VS2017,x64,Release Fails for some reason (Lua?)
configuration: Release
image: Visual Studio 2017
for:
- matrix:
only:
- image: Visual Studio 2017
environment:
BOOST_ROOT: C:\Libraries\boost_1_69_0
GENERATOR: Visual Studio 15 2017
install:
- dir C:\Libraries
- appveyor-retry git submodule update --init
before_build:
- if exist build\ (rmdir /S /Q build)
- set "INSTALL_DIR=%APPVEYOR_BUILD_FOLDER%\installed"
- if exist %INSTALL_DIR%\ (rmdir /S /Q %INSTALL_DIR%)
- mkdir build
- cd build
- if %platform% == x64 (if "%GENERATOR%" == "Visual Studio 2017" (set "GENERATOR=%GENERATOR% Win64"))
# Enable LTCG for release builds (speeds up linking as /GL compiled modules are used)
- if %configuration% == Release (set "cmakeFlags=-DCMAKE_EXE_LINKER_FLAGS=/LTCG -DCMAKE_SHARED_LINKER_FLAGS=/LTCG")
- echo "Configuring %GENERATOR% for %configuration% on %platform% with boost=%BOOST_ROOT%"
- cmake -G "%GENERATOR%" -A %platform% -DRTTR_ENABLE_WERROR=ON -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -DRTTR_EXTERNAL_BUILD_TESTING=ON -DRTTR_ENABLE_BENCHMARKS=ON %cmakeFlags% ..
build_script: cmake --build . --config %configuration% --parallel 4
test_script: ctest --output-on-failure -C %configuration% --parallel 4