-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
92 lines (80 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
86
87
88
89
90
91
92
os:
- Visual Studio 2019
environment:
PATH: C:\Python311-x64\Scripts;C:\Python311-arm\Scripts;$(PATH)
VCPKG_BINARY_SOURCES: clear;files,C:\vcpkg.cache,readwrite
matrix:
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: x64
TRIPLET: x64-windows
CMAKE_OPTS: "-DBUILD_SHARED_LIBS=off"
CMAKE_CONFIG: Release
RUN_TESTS: yes
TOXENV: py311
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: x64
TRIPLET: x64-uwp
CMAKE_OPTS: "-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0"
CMAKE_CONFIG: Release
RUN_TESTS: no
TOXENV: py311
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: Win32
TRIPLET: x86-windows
CMAKE_OPTS: "-DBUILD_SHARED_LIBS=off"
CMAKE_CONFIG: Release
RUN_TESTS: yes
TOXENV: py311
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: Win32
TRIPLET: x86-uwp
CMAKE_OPTS: "-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0"
CMAKE_CONFIG: Release
RUN_TESTS: no
TOXENV: py311
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: ARM
TRIPLET: arm-windows
CMAKE_OPTS: "-DENABLE_OPENSSL=off"
CMAKE_CONFIG: Release
RUN_TESTS: no
TOXENV: py311
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: ARM
TRIPLET: arm-uwp
CMAKE_OPTS: "-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DENABLE_OPENSSL=off"
CMAKE_CONFIG: Release
RUN_TESTS: no
TOXENV: py311
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: ARM64
TRIPLET: arm64-windows
CMAKE_OPTS: "-DENABLE_OPENSSL=off"
CMAKE_CONFIG: Release
RUN_TESTS: no
TOXENV: py311
- GENERATOR: "Visual Studio 16 2019"
PLATFORM: ARM64
TRIPLET: arm64-uwp
CMAKE_OPTS: "-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DENABLE_OPENSSL=off"
CMAKE_CONFIG: Release
RUN_TESTS: no
TOXENV: py311
before_build:
cmd: >-
py -m pip install nihtest
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=C:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake .. -G "%GENERATOR%" -A "%PLATFORM%" %CMAKE_OPTS%
appveyor PushArtifact config.h
appveyor PushArtifact CMakeCache.txt
build_script:
cmd: >-
cmake --build . --config %CMAKE_CONFIG% --target INSTALL
cmake --build . --config %CMAKE_CONFIG%
test_script:
cmd: >-
set VERBOSE=yes
IF %RUN_TESTS%==yes ( ctest -C %CMAKE_CONFIG% --output-on-failure )
cache:
- c:\vcpkg.cache -> vcpkg.json