-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.appveyor.yml
More file actions
68 lines (56 loc) · 2 KB
/
.appveyor.yml
File metadata and controls
68 lines (56 loc) · 2 KB
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
image:
- Visual Studio 2022
# Build only on the master branch, and for PRs.
branches:
only:
- master
build:
parallel: true
verbosity: detailed
configuration:
- Debug
- Release
platform:
- x64
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
VCPKG_ROOT: C:\Tools\vcpkg
VCPKG_DEFAULT_BINARY_CACHE: C:\Tools\vcpkg\archives
CMAKE_BUILD_PARALLEL_LEVEL: 4
TERMINALPP_VERSION: 4.0.0
matrix:
# currently disabled due to a problem linking: see issue #262
# - shared: True
- shared: False
cache:
- C:\Tools\vcpkg\installed
- C:\Tools\vcpkg\downloads
- C:\Tools\vcpkg\archives
init:
- echo Appveyor Image = %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2022" ( set "generator=Visual Studio 17 2022" && set "toolset=v143" )
- echo Generator = %generator%
install:
- cd %VCPKG_ROOT%
- if not exist "%VCPKG_DEFAULT_BINARY_CACHE%" mkdir "%VCPKG_DEFAULT_BINARY_CACHE%"
- if not exist "%VCPKG_ROOT%\downloads" mkdir "%VCPKG_ROOT%\downloads"
- git fetch --tags --prune
- git checkout 58950f88544e4637524dbd6a01d0317cf4cb77fc
- .\bootstrap-vcpkg.bat
- cd %appveyor_build_folder%
- call "%VCPKG_ROOT%\vcpkg" install --triplet %platform%-windows
- mkdir c:\Source
- cd C:\Source
- git clone --depth 1 https://github.com/KazDragon/terminalpp
- cd terminalpp
- cmake -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake -DTERMINALPP_WITH_TESTS=False -DTERMINALPP_VERSION=%TERMINALPP_VERSION% -DCMAKE_INSTALL_PREFIX=C:/Libraries -DBUILD_SHARED_LIBS=%shared% .
- cmake --build . --config %configuration% -- /m
- cmake --install . --config %configuration%
build_script:
- cd %appveyor_build_folder%
- mkdir build
- cd build
- cmake -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake -DCMAKE_PREFIX_PATH=C:/Libraries -DBUILD_SHARED_LIBS=%shared% ..
- cmake --build . --config %configuration% -- /m
test_script:
- ctest . --output-on-failure -C %configuration%