-
Notifications
You must be signed in to change notification settings - Fork 310
/
appveyor.yml
39 lines (34 loc) · 1.21 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "{build}"
image: Visual Studio 2017
branches:
only:
- master
- /release\/.*/
- appveyor
- hunter
configuration:
- Release
environment:
matrix:
- VS: 2022
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- VS: 2019
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- VS: 2017
- VS: 2017-32bit
cache:
- C:\.hunter\_Base\Cache -> cmake\Hunter\init.cmake
before_build:
- if "%VS%" == "2022" (call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\Tools\vsdevcmd" -arch=amd64)
- if "%VS%" == "2019" (call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools\vsdevcmd" -arch=amd64)
- if "%VS%" == "2017" (call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=amd64)
- if "%VS%" == "2017-32bit" (call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd" -arch=x86)
- if defined VS cmake -B build -G Ninja -Wno-dev -DCMAKE_COMPILE_WARNING_AS_ERROR=TRUE -DEVMC_TESTING=ON
build_script:
- cmake --build build --target package
after_build:
- cd build
- ctest -C $env:CONFIGURATION -j4 --schedule-random --output-on-failure
artifacts:
- path: build\evmc-*.*
name: package