-
Notifications
You must be signed in to change notification settings - Fork 39
/
appveyor.yml
63 lines (51 loc) · 1.62 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "{build}"
clone_folder: c:\projects\VisualScriptEngine
environment:
PYTHON: "C:\\Python38-x64"
image:
- Visual Studio 2017
- Visual Studio 2019
- Visual Studio 2022
configuration:
- Debug
- Release
- RelWithDebInfo
platform:
- x64
init:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- python -V
- set cMakeParams=
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" ( set cMakeParams=-G "Visual Studio 15 2017 Win64" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019" ( set cMakeParams=-G "Visual Studio 16 2019" -A "x64")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2022" ( set cMakeParams=-G "Visual Studio 17 2022" -A "x64")
before_build:
- mkdir Build
- cd Build
- cmake %cMakeParams% ..
- cd ..
build:
project: Build\VisualScriptEngine.sln
verbosity: minimal
after_build:
- set packageName=
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" (set packageName=Windows_VS2017)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019" (set packageName=Windows_VS2019)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2022" (set packageName=Windows_VS2022)
- python CreateDevKit.py "MSBuild" %configuration%
- python CreatePackage.py Build\DevKit %packageName% %configuration%
test_script:
- cd Build
- ctest --verbose --build-config %configuration%
- cd ..
artifacts:
- path: Build\Package\*
deploy:
description: 'News:\n- ...\n\nMigration:\n- ...'
provider: GitHub
auth_token:
secure: oN14X2NG9+1O6cVQ7m2pIUkMxJ4mbZC1oht03WtJPS4E03MfPH8wZYAw9vmkSL9H
draft: true
on:
branch: master
APPVEYOR_REPO_TAG: true