-
Notifications
You must be signed in to change notification settings - Fork 61
/
appveyor.yml
76 lines (63 loc) · 2.11 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
version: 1.0.{build}
image:
- Visual Studio 2022
build:
parallel: true
environment:
matrix:
- job_name: MSVC toolchain
CMAKE_CONFIG_TYPE: "Release"
GENERATOR: Visual Studio 17 2022
- job_name: MSYS2 x86_64 toolchain
CMAKE_CONFIG_TYPE: "Release"
SYS_MSYSTEM: 'MINGW64'
SYS_MENVIRONMENT: 'x86_64'
GENERATOR: MinGW Makefiles
- job_name: MSYS2 UCRT64 toolchain
CMAKE_CONFIG_TYPE: "Release"
SYS_MSYSTEM: 'UCRT64'
SYS_MENVIRONMENT: 'ucrt-x86_64'
GENERATOR: MinGW Makefiles
- job_name: MSYS2 CLANG64 toolchain
CMAKE_CONFIG_TYPE: "Release"
SYS_MSYSTEM: 'CLANG64'
SYS_MENVIRONMENT: 'clang-x86_64'
GENERATOR: MinGW Makefiles
platform:
- x64
for:
#
# init specific instructions for MSYS2 toolchains
#
-
matrix:
only:
- job_name: MSYS2 x86_64 toolchain
- job_name: MSYS2 UCRT64 toolchain
- job_name: MSYS2 CLANG64 toolchain
init:
#
# Following the guide on https://www.msys2.org/docs/ci#appveyor
# to build the project using MSYS2 toolchain on appveyor CI service
#
# Update MSYS2
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" # Core update (in case any core packages are outdated)
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" # Normal update
# Setup MSYS2 environment
- set MSYSTEM=%SYS_MSYSTEM% # Start a 64 bit Mingw environment
# Install C compiler + GNU Make on MSYS2
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-%SYS_MENVIRONMENT%-cc mingw-w64-%SYS_MENVIRONMENT%-make"
# Adjust system PATH environment variable
- set PATH=C:\msys64\%SYS_MSYSTEM%\bin;%PATH% # Place MSYS2 tools in front of system PATH
build_script:
# Create build dir
- mkdir build
# Change directory to build dir
- cd build
# Configure to build the shared library
- cmake -G "%GENERATOR%" -DBUILD_SHARED_LIBS:BOOL=ON ..
# Perform the build
- cmake --build . --config %CMAKE_CONFIG_TYPE%
test_script:
# Perform tests
- ctest --output-on-failure -C %CMAKE_CONFIG_TYPE%