Skip to content

Commit dc9e2a7

Browse files
committed
Added AppVeyor CI config.
AppVeyor CI can be useful to test older MSVC versions that are no longer supported by GitHub Actions.
1 parent df5fd8f commit dc9e2a7

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

appveyor.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Copyright 2025 Andrey Semashev
2+
#
3+
# Distributed under the Boost Software License, Version 1.0.
4+
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
5+
6+
version: 1.0.{build}-{branch}
7+
8+
shallow_clone: true
9+
10+
branches:
11+
only:
12+
- master
13+
- develop
14+
- /feature\/.*/
15+
16+
environment:
17+
matrix:
18+
- TOOLSET: msvc-14.0
19+
ADDRMD: 32,64
20+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
21+
- TOOLSET: msvc-14.1
22+
CXXSTD: 14,17,latest
23+
ADDRMD: 32,64
24+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
25+
- TOOLSET: msvc-14.2
26+
ADDRMD: 32,64
27+
CXXSTD: 14,17,20,latest
28+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
29+
- TOOLSET: msvc-14.3
30+
ADDRMD: 32,64
31+
CXXSTD: 14,17,20,latest
32+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
33+
- TOOLSET: clang-win
34+
ADDRMD: 32
35+
CXXSTD: 14,17,latest
36+
ENV_SCRIPT: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat
37+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
38+
- TOOLSET: clang-win
39+
ADDRMD: 64
40+
CXXSTD: 14,17,latest
41+
ENV_SCRIPT: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
42+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
43+
- TOOLSET: gcc
44+
CXXSTD: 11,14,1z
45+
ADDPATH: C:\cygwin\bin;
46+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
47+
- TOOLSET: gcc
48+
CXXSTD: 11,14,1z
49+
ADDPATH: C:\cygwin64\bin;
50+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
51+
- TOOLSET: gcc
52+
CXXSTD: 11,14,17
53+
ADDPATH: C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;
54+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
55+
- TOOLSET: gcc
56+
CXXSTD: 11,14,17,2a
57+
ADDPATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;
58+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
59+
- TEST_CMAKE: 1
60+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
61+
62+
install:
63+
- set GIT_FETCH_JOBS=8
64+
- set BOOST_BRANCH=develop
65+
- if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master
66+
- cd ..
67+
- git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
68+
- cd boost-root
69+
- git submodule init tools/build
70+
- git submodule init tools/boostdep
71+
- git submodule init tools/boost_install
72+
- git submodule init libs/headers
73+
- git submodule init libs/config
74+
- git submodule update --jobs %GIT_FETCH_JOBS%
75+
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\scope
76+
- python tools/boostdep/depinst/depinst.py --git_args "--jobs %GIT_FETCH_JOBS%" scope
77+
- cmd /c bootstrap
78+
- b2 -d0 headers
79+
80+
build: off
81+
82+
test_script:
83+
- PATH=%ADDPATH%%PATH%
84+
- if not "%ENV_SCRIPT%" == "" call "%ENV_SCRIPT%"
85+
- if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD%
86+
- if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD%
87+
- if not "%THREADING%" == "" set THREADING=threading=%THREADING%
88+
- b2 -j %NUMBER_OF_PROCESSORS% libs/scope/test toolset=%TOOLSET% %CXXSTD% %ADDRMD% %THREADING%
89+
90+
for:
91+
- matrix:
92+
only: [TEST_CMAKE: 1]
93+
test_script:
94+
- mkdir __build_static__
95+
- cd __build_static__
96+
- cmake -DBOOST_INCLUDE_LIBRARIES=scope -DBUILD_TESTING=ON ..
97+
- cmake --build . --config Release --target tests -j %NUMBER_OF_PROCESSORS%
98+
- ctest -C Release --output-on-failure --no-tests=error -j %NUMBER_OF_PROCESSORS%
99+
- cd ..
100+
- mkdir __build_shared__
101+
- cd __build_shared__
102+
- cmake -DBOOST_INCLUDE_LIBRARIES=scope -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON ..
103+
- cmake --build . --config Release --target tests -j %NUMBER_OF_PROCESSORS%
104+
- ctest -C Release --output-on-failure --no-tests=error -j %NUMBER_OF_PROCESSORS%

0 commit comments

Comments
 (0)