-
Notifications
You must be signed in to change notification settings - Fork 519
/
appveyor.yml
92 lines (74 loc) · 2.67 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Reference: http://www.appveyor.com/docs/appveyor-yml
# Notes:
# - Indent each level of configuration with 2 spaces. Do not use tabs!
#---------------------------------#
# general configuration #
#---------------------------------#
version: 1.0.{build}
branches:
only:
- master
except:
- gh-pages
#---------------------------------#
# environment configuration #
#---------------------------------#
matrix:
fast_finish: true
os: Visual Studio 2017
platform:
- x86
- x64
configuration:
- Release
environment:
VS_VERSION: vs2017
BUILD_PLATFORM: 'x86'
DEPS_PATH: '%APPVEYOR_BUILD_FOLDER%\deps'
LLVM_PATH: '%APPVEYOR_BUILD_FOLDER%\deps\llvm'
BUILD_PATH: '%APPVEYOR_BUILD_FOLDER%\build\%VS_VERSION%'
LIB_PATH: '%APPVEYOR_BUILD_FOLDER%\build\%VS_VERSION%\lib\%CONFIGURATION%_%BUILD_PLATFORM%'
ARTIFACT_NAME: '%APPVEYOR_PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%VS_VERSION%-%BUILD_PLATFORM%.zip'
GITHUB_ACCESS_TOKEN:
secure: CrxPDgxTKC9ZRvFjttpRPO+e1DT8s0Zkk9HrAmHOIzDkOfFbbu1iTm/yJjZ2eDcd
init:
- git config --global core.autocrlf true
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- build\premake5.exe --file=build\scripts\LLVM.lua download_llvm
build_script:
- build\premake5.exe --file=build\premake5.lua %VS_VERSION%
- msbuild %BUILD_PATH%\CppSharp.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal
#---------------------------------#
# parser bindings generation #
#---------------------------------#
on_success:
#- git config --global user.name "CppSharp CI"
#- git config --global user.email "joao+cppsharp-ci@tritao.eu"
#- git config --global credential.helper store
#- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GITHUB_ACCESS_TOKEN):x-oauth-basic@github.com`n"
#- git remote set-url origin https://github.com/mono/CppSharp.git
#- git checkout master
#- '%LIB_PATH%\CppSharp.Parser.Gen.exe'
#- 'git commit -a -m "CI: Re-generated the parser bindings"'
#- git push
#---------------------------------#
# artifacts configuration #
#---------------------------------#
after_build:
- echo 'Preparing artifacts...'
- 7z a %ARTIFACT_NAME% %LIB_PATH%\CppSharp*
- appveyor PushArtifact %ARTIFACT_NAME%
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
release: 'CppSharp'
description: "Latest successful CI builds of branch 'master'"
provider: GitHub
auth_token:
secure: tSYxyXeLtE0f6ZsXsGaHZEAw5Nj4TcgN/rx8uCfPnRjcE55OLAVn/8WXEiovNXLt
prerelease: true
on:
branch: master
appveyor_repo_tag: true