Use split builds for PR and master
+# Fast single-config build for PRs
+-
+ branches:
+ except: [master]
+
+ image: Visual Studio 2022
+ version: '{build}'
+
+ platform: x64
+
+ # Do not build feature branch with open Pull Requests
+ # The build is redundant and gets queued behind the other one.
+ skip_branch_with_pr: true
+
+ before_build:
+ - cmake -H. -Bbuild
+
+ build_script:
+ - if "%APPVEYOR_REPO_TAG%"=="true" (set CONFIGURATION=RelWithDebInfo) else (set CONFIGURATION=Debug)
+ - cmake --build build --config "%CONFIGURATION%"
+
+-
+ branches:
+ only: [master]
+
image:
- Visual Studio 2015
- Visual Studio 2022
version: '{build}'
-branches:
- except:
- - gh-pages
-
platform:
- x64
- x86
-# Do not build feature branch with open Pull Requests
-# The build is redundant and gets queued behind the other one.
skip_branch_with_pr: true
-# Via https://github.com/apitrace/apitrace/blob/master/appveyor.yml
-
before_build:
- cmake -H. -Bbuild
@@ -26,4 +43,3 @@ build_script:
# TODO enable CMocka tests, maybe package the binaries
# TODO add MinGW
\ No newline at end of file
-# TODO add older MSVC
\ No newline at end of file
