]> granicus.if.org Git - json-c/commitdiff
There doesn't seem to be a way to extend the appveyor build matrix for just one image...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 27 Nov 2021 02:55:29 +0000 (02:55 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 27 Nov 2021 02:55:29 +0000 (02:55 +0000)
appveyor.yml

index d7b1e3cdf169ed1deebb557f980401b3203ecf58..12f7daa74eed41bdd460fbec47c39fd03bd565de 100644 (file)
@@ -5,43 +5,100 @@ image:
   # aka os: Windows Server 2012 R2
   - Visual Studio 2015
   # aka os: Windows Server 2016
+# b_toolset: v141
   - Visual Studio 2017
   # aka os: Windows Server 2019
+# b_toolset: v142
   - Visual Studio 2019
+# b_toolset: v143
+  - Visual Studio 2022
 
 platform: x64
 
-for:
--
+environment:
   matrix:
-    only:
-      - image: Visual Studio 2015
+    - b_toolset: Windows7.1SDK
 
-  environment:
-    matrix:
-      - b_toolset: Windows7.1SDK
-        b_config: Debug
+    - b_toolset: v120
 
-      - b_toolset: v120
-        b_config: Debug
+    - b_toolset: v140
 
-      - b_toolset: v140
-        b_config: Debug
+    - b_toolset: v141
 
-  build_script:
-    - cmake -T %b_toolset% -DCMAKE_BUILD_TYPE=%b_config% -DCMAKE_INSTALL_PREFIX=t_install .
-    - cmake --build . --target install
+    - b_toolset: v142
 
-environment:
-  matrix:
-    - b_config: Debug
+    - b_toolset: v143
 
-    - b_config: Release
+configuration:
+  - Debug
+  - Release
 
 build_script:
-- cmake -DCMAKE_BUILD_TYPE=%b_config% -DCMAKE_INSTALL_PREFIX=t_install .
+- cmake -T %b_toolset% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_INSTALL_PREFIX=t_install .
 - cmake --build . --target install
 
+matrix:
+  exclude:
+    - image: Visual Studio 2015
+      b_toolset: v141
+
+    - image: Visual Studio 2015
+      b_toolset: v142
+
+    - image: Visual Studio 2015
+      b_toolset: v143
+
+    # ----
+
+    - image: Visual Studio 2017
+      b_toolset: Windows7.1SDK
+
+    - image: Visual Studio 2017
+      b_toolset: v120
+
+    - image: Visual Studio 2017
+      b_toolset: v140
+
+    - image: Visual Studio 2017
+      b_toolset: v142
+
+    - image: Visual Studio 2017
+      b_toolset: v143
+
+    # ----
+
+    - image: Visual Studio 2019
+      b_toolset: Windows7.1SDK
+
+    - image: Visual Studio 2019
+      b_toolset: v120
+
+    - image: Visual Studio 2019
+      b_toolset: v140
+
+    - image: Visual Studio 2019
+      b_toolset: v141
+
+    - image: Visual Studio 2019
+      b_toolset: v143
+
+    # ----
+
+    - image: Visual Studio 2022
+      b_toolset: Windows7.1SDK
+
+    - image: Visual Studio 2022
+      b_toolset: v120
+
+    - image: Visual Studio 2022
+      b_toolset: v140
+
+    - image: Visual Studio 2022
+      b_toolset: v141
+
+    - image: Visual Studio 2022
+      b_toolset: v142
+
 after_build:
 - cd t_install
 - 7z a ../json-c.win32.%b_toolset%.%b_config%.zip *