Skip to content

Commit ba96ddb

Browse files
committed
appvoyer updated
1 parent e8cb7b8 commit ba96ddb

File tree

1 file changed

+49
-16
lines changed

1 file changed

+49
-16
lines changed

.appveyor.yml

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,59 @@
1-
image:
2-
- Visual Studio 2022 # Replace with the latest available Visual Studio version if newer
1+
# AppVeyor configuration for cpp_tutorial Project
2+
version: 1.0.{build}
33

4-
clone_folder: c:\projects\source
4+
# Build environment
5+
os: Visual Studio 2022
56

7+
# Branches to build
8+
branches:
9+
only:
10+
- master
11+
12+
# Configuration matrix
13+
platform:
14+
- x64
15+
16+
configuration:
17+
- Release
18+
- Debug
19+
20+
# Environment setup
621
environment:
7-
PYTHON: "C:\\Python38-x64\\python.exe"
22+
matrix:
23+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
824

25+
# Build scripts
926
install:
10-
- cmd: >-
11-
set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\Python\Python38\Scripts
12-
"%PYTHON%" -m pip install --user conan
13-
choco install cmake --installargs '"ADD_CMAKE_TO_PATH=System"' --yes
14-
choco upgrade cmake --yes
15-
choco install ninja -y
27+
# Ensure CMake is available
28+
- ps: Install-Product node 14
29+
- set PATH=C:\Program Files\CMake\bin;%PATH%
30+
- cmake --version
31+
32+
before_build:
33+
- mkdir build
34+
- cd build
35+
- cmake -G "Ninja" -A x64 ..
1636

1737
build_script:
18-
- cmd: >-
19-
cmake --preset ninja-multi
20-
cmake --build . --preset ninja-multi-release
38+
- cmake --build . --config %CONFIGURATION%
2139

2240
test_script:
23-
- cmd: >-
24-
cd build
25-
ctest -C Release
41+
# Uncomment if you have tests
42+
# - ctest -C %CONFIGURATION%
43+
44+
# Artifacts
45+
artifacts:
46+
- path: build\**\*.exe
47+
name: Executables
48+
49+
- path: docs\**\*.html
50+
name: Documentation
51+
52+
# Notifications (optional)
53+
notifications:
54+
- provider: Email
55+
to:
56+
57+
on_build_success: true
58+
on_build_failure: true
2659

0 commit comments

Comments
 (0)