summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2021-11-27 02:29:26 +0000
committerEric Haszlakiewicz <erh+git@nimenees.com>2021-11-27 02:29:26 +0000
commit0910e18bbdfe6fac13ad74f0ec4e0d9f22d78fb6 (patch)
treeb48f7ef4acd0ea098977bd2235493ef5e399084f
parentf1fb9abf147cab2121a29ca278b9756c47e37854 (diff)
downloadjson-c-0910e18bbdfe6fac13ad74f0ec4e0d9f22d78fb6.tar.gz
Use the newer appveyor images to build for VS2017 and VS2019. Trim the number of builds we do.
-rw-r--r--appveyor.yml46
1 files changed, 30 insertions, 16 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 581366d..d7b1e3c 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,31 +1,45 @@
version: '{branch}.{build}'
-os: Windows Server 2012 R2
+
+image:
+ # VS2015 also used for earlier VS builds
+ # aka os: Windows Server 2012 R2
+ - Visual Studio 2015
+ # aka os: Windows Server 2016
+ - Visual Studio 2017
+ # aka os: Windows Server 2019
+ - Visual Studio 2019
platform: x64
-# There should be a better way to set-up a build matrix.
-environment:
+for:
+-
matrix:
- - b_toolset: Windows7.1SDK
- b_config: Debug
+ only:
+ - image: Visual Studio 2015
+
+ environment:
+ matrix:
+ - b_toolset: Windows7.1SDK
+ b_config: Debug
- - b_toolset: Windows7.1SDK
- b_config: Release
+ - b_toolset: v120
+ b_config: Debug
- - b_toolset: v120
- b_config: Debug
+ - b_toolset: v140
+ b_config: Debug
- - b_toolset: v120
- b_config: Release
+ build_script:
+ - cmake -T %b_toolset% -DCMAKE_BUILD_TYPE=%b_config% -DCMAKE_INSTALL_PREFIX=t_install .
+ - cmake --build . --target install
- - b_toolset: v140
- b_config: Debug
+environment:
+ matrix:
+ - b_config: Debug
- - b_toolset: v140
- b_config: Release
+ - b_config: Release
build_script:
-- cmake -T %b_toolset% -DCMAKE_BUILD_TYPE=%b_config% -DCMAKE_INSTALL_PREFIX=t_install .
+- cmake -DCMAKE_BUILD_TYPE=%b_config% -DCMAKE_INSTALL_PREFIX=t_install .
- cmake --build . --target install
after_build: