forked from lexxmark/winflexbison
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
45 lines (36 loc) · 1.01 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
40
41
42
43
44
45
image: Visual Studio 2022
configuration:
- Release
- Debug
platform:
- x64
- Win32
environment:
CMAKE_OPTIONS: "-A \"%platform%\" -DCMAKE_BUILD_TYPE=\"%configuration%\" -DUSE_STATIC_RUNTIME=ON"
# VS VERSION IN CMAKE STYLE
matrix:
- VSVERSION: "17 2022"
- VSVERSION: "16 2019"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- VSVERSION: "15 2017"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
matrix:
exclude:
- VSVERSION: "17 2022"
platform: Win32
init:
- cmake --version
- msbuild /version
before_build:
- set VSVERSIONSHORT=%VSVERSION:~3,4%
- if "%APPVEYOR_REPO_TAG_NAME%"=="" ( set "APPVEYOR_REPO_TAG_NAME=dev-%VSVERSIONSHORT%-%platform%-%configuration%" )
- mkdir build
- cd build
- cmake -G "Visual Studio %VSVERSION%" -DCPACK_PACKAGE_VERSION="%APPVEYOR_REPO_TAG_NAME%" %CMAKE_OPTIONS% ..
build:
project: "build\\winflexbison.sln"
parallel: false
after_build:
- cmake --build . --target package
artifacts:
- path: build/win_flex_bison*.zip