-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.appveyor.yml
More file actions
61 lines (49 loc) · 1.35 KB
/
.appveyor.yml
File metadata and controls
61 lines (49 loc) · 1.35 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
# AppVeyor configuration for cpp_tutorial Project
version: 1.0.{build}
# Build environment - using latest Visual Studio 2022
os: Visual Studio 2022
# Branches to build
branches:
only:
- master
# Configuration matrix
platform:
- x64
configuration:
- Release
- Debug
# Environment setup
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
# Build scripts
install:
# Ensure CMake is available
- ps: Install-Product node 14
- set PATH=C:\Program Files\CMake\bin;%PATH%
- cmake --version
before_build:
# Use CMake presets for configuration
- cmake --preset ninja-multi
build_script:
# Use CMake presets for building based on configuration
- if "%CONFIGURATION%"=="Debug" cmake --build --preset ninja-multi-debug
- if "%CONFIGURATION%"=="Release" cmake --build --preset ninja-multi-release
- if "%CONFIGURATION%"=="RelWithDebInfo" cmake --build --preset ninja-multi-relwithdebinfo
- if "%CONFIGURATION%"=="MinSizeRel" cmake --build --preset ninja-multi-minsizerel
test_script:
# Uncomment if you have tests
# - ctest -C %CONFIGURATION%
# Artifacts
artifacts:
- path: build\**\*.exe
name: Executables
- path: docs\**\*.html
name: Documentation
# Notifications (optional)
notifications:
- provider: Email
to:
- behnam.asadi@gmail.com
on_build_success: true
on_build_failure: true