-
Notifications
You must be signed in to change notification settings - Fork 110
/
.appveyor.yml
57 lines (52 loc) · 1.89 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
version: 7.9.0-{build}
image:
- Visual Studio 2022
environment:
STUDIO_VERSION_EDITION: Studio\2022\Community
PLATFORM_TYPE:
CMAKE_CONFIG: Debug
TEST_TARGET: check
matrix:
- TARGET: cmake
CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=ON -Dbuild_tests=ON -Werror=deprecated
- TARGET: cmake
CFLAGS_EXTRA: -DAO_CMPXCHG16B_AVAILABLE
CMAKE_OPTIONS: -Dbuild_tests=ON -Denable_assertions=ON -Dinstall_headers=OFF
- TARGET: cmake
CMAKE_CONFIG: Release
CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -Dbuild_tests=ON -Denable_gpl=OFF
- TARGET: cmake
CMAKE_OPTIONS: -A Win32 -Dbuild_tests=ON -Denable_assertions=ON -Denable_docs=OFF
- TARGET: cmake
CMAKE_CONFIG: Release
CMAKE_OPTIONS: -A ARM64 -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=ON
- TARGET: nmake
ARCH: x86
CFLAGS_EXTRA: /J
- TARGET: nmake
ARCH: x86
CFLAGS_EXTRA: -DNDEBUG
- TARGET: nmake
ARCH: x64
CFLAGS_EXTRA: -DAO_CMPXCHG16B_AVAILABLE
- TARGET: nmake
ARCH: x86_x64
CFLAGS_EXTRA: -DNDEBUG
- TARGET: nmake
ARCH: x64_arm64
TEST_TARGET: check-deps
clone_depth: 50
build_script:
- cmd: if [%TARGET%]==[cmake] (
mkdir out && cd out
&& cmake %CMAKE_OPTIONS% -Denable_werror=ON -DCFLAGS_EXTRA="%CFLAGS_EXTRA%" ..
&& cmake --build . --config %CMAKE_CONFIG% --verbose --parallel )
- cmd: if [%TARGET%]==[nmake] (
"C:\Program Files\Microsoft Visual %STUDIO_VERSION_EDITION%\VC\Auxiliary\Build\vcvarsall.bat" %ARCH% %PLATFORM_TYPE%
&& cd src && nmake -f Makefile.msft clean all CFLAGS_EXTRA="/WX %CFLAGS_EXTRA%" && cd .. )
test_script:
- cmd: if [%TARGET%]==[cmake] (
ctest --build-config %CMAKE_CONFIG% --verbose --parallel 4 )
- cmd: if [%TARGET%]==[nmake] (
"C:\Program Files\Microsoft Visual %STUDIO_VERSION_EDITION%\VC\Auxiliary\Build\vcvarsall.bat" %ARCH% %PLATFORM_TYPE%
&& cd src && nmake -f Makefile.msft %TEST_TARGET% CFLAGS_EXTRA="/WX %CFLAGS_EXTRA%" )