forked from lexxmark/winflexbison
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
38 lines (30 loc) · 885 Bytes
/
.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
image: Visual Studio 2019
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: "16 2019"
- VSVERSION: "15 2017"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
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