This repository has been archived by the owner on Aug 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy path.appveyor.yml
64 lines (52 loc) · 1.63 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
# Written and placed in public domain by Jeffrey Walton
version: '{build}'
#branches:
# only:
# - master
clone_folder: c:\projects\cryptopp-cmake
image:
- Visual Studio 2013
- Visual Studio 2015
- Visual Studio 2017
- Visual Studio 2019
- Visual Studio 2022
configuration:
- Release
- Debug
platform:
- x64
environment:
matrix:
- arch: Win64
- arch: ARM
matrix:
fast_finish: true
# skip unsupported combinations
init:
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2022" ( set generator="Visual Studio 17 2022 %arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019 %arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017 %arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015 %arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013 %arch%" )
- echo "======================================================="
- echo APPVEYOR_BUILD_WORKER_IMAGE %APPVEYOR_BUILD_WORKER_IMAGE%
- echo generator %generator%
- echo "======================================================="
before_build:
- cmd: |-
c:
cd \projects
git clone https://github.com/weidai11/cryptopp.git
cp cryptopp-cmake/cryptopp-config.cmake cryptopp
cp cryptopp-cmake/CMakeLists.txt cryptopp
cd cryptopp
mkdir _build
cmake --version
build:
parallel: true
build_script:
- cd _build
- cmake .. -A %arch% -G %generator%
- cmake --build . --config "%CONFIGURATION%"
test_script:
- if not "%arch%"=="ARM" ( ctest -V -C "%CONFIGURATION%" )