File tree Expand file tree Collapse file tree 1 file changed +49
-16
lines changed Expand file tree Collapse file tree 1 file changed +49
-16
lines changed Original file line number Diff line number Diff line change 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}
3
3
4
- clone_folder : c:\projects\source
4
+ # Build environment
5
+ os : Visual Studio 2022
5
6
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
6
21
environment :
7
- PYTHON : " C:\\ Python38-x64\\ python.exe"
22
+ matrix :
23
+ - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
8
24
25
+ # Build scripts
9
26
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 ..
16
36
17
37
build_script :
18
- - cmd : >-
19
- cmake --preset ninja-multi
20
- cmake --build . --preset ninja-multi-release
38
+ - cmake --build . --config %CONFIGURATION%
21
39
22
40
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
26
59
You can’t perform that action at this time.
0 commit comments