forked from googlesamples/assistant-sdk-cpp
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
111 lines (88 loc) · 3.61 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: 0.1.0.{build}
shallow_clone: true
clone_depth: 1
configuration:
- MinSizeRel
- Release
- Debug
environment:
DIST_DIR: '%APPVEYOR_BUILD_FOLDER%\dist'
GOPATH: c:\go
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
ARCHITECTURE: amd64_x86
ARCHIVE: VS2015_%CONFIGURATION%_x86_%APPVEYOR_BUILD_NUMBER%
GENERATOR: 'NMake Makefiles'
CMAKE_ARGS:
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
ARCHITECTURE: amd64
ARCHIVE: VS2015_%CONFIGURATION%_x64_%APPVEYOR_BUILD_NUMBER%
GENERATOR: 'NMake Makefiles'
CMAKE_ARGS:
# - APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
# VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
# ARCHITECTURE: amd64_arm
# ARCHIVE: VS2015_%CONFIGURATION%_ARM_%APPVEYOR_BUILD_NUMBER%
# GENERATOR: 'NMake Makefiles'
# CMAKE_ARGS:
# - APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
# VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
# ARCHITECTURE: amd64_arm
# ARCHIVE: VS2017_%CONFIGURATION%_ARM_%APPVEYOR_BUILD_NUMBER%
# GENERATOR: 'NMake Makefiles'
# CMAKE_ARGS:
# - APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
# VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
# ARCHITECTURE: amd64_arm64
# ARCHIVE: VS2017_%CONFIGURATION%_ARM64_%APPVEYOR_BUILD_NUMBER%
# GENERATOR: 'NMake Makefiles'
# CMAKE_ARGS:
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
ARCHITECTURE: amd64_x86
ARCHIVE: VS2017_%CONFIGURATION%_x86_%APPVEYOR_BUILD_NUMBER%
GENERATOR: 'NMake Makefiles'
CMAKE_ARGS:
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
ARCHITECTURE: amd64
ARCHIVE: VS2017_%CONFIGURATION%_x86_%APPVEYOR_BUILD_NUMBER%
GENERATOR: 'NMake Makefiles'
CMAKE_ARGS:
init:
- echo BUILD_NUMBER=%APPVEYOR_BUILD_NUMBER%
stack:
- go 1.14.4
install:
- echo Downloading Yasm...
- mkdir windows_build_tools
- powershell -Command "(New-Object Net.WebClient).DownloadFile('https://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe', 'windows_build_tools\yasm.exe')"
- set PATH=%cd%\windows_build_tools;%PATH%
- cmake --version
- go version
- yasm --version
build:
parallel: true
build_script:
- if exist "%VCVARSALL%" ( call "%VCVARSALL%" %ARCHITECTURE% )
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- cmake %CMAKE_TOOLCHAIN_ARGS% -G"%GENERATOR%"
-DCMAKE_VERBOSE_MAKEFILE=TRUE
-DCMAKE_BUILD_TYPE=%CONFIGURATION%
-DCMAKE_ASM_NASM_COMPILER="yasm.exe"
-DCMAKE_STAGING_PREFIX="%DIST_DIR%\%APPVEYOR_BUILD_WORKER_IMAGE%\${CMAKE_INSTALL_PREFIX}"
-DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% %CMAKE_ARGS%
..
- set CL=/MP
- cmake --build . --config %CONFIGURATION% --target all
after_build:
- cd %DIST_DIR%
- 7z a -tzip %ARCHIVE%.zip "%APPVEYOR_BUILD_WORKER_IMAGE%"
- certutil -hashfile %ARCHIVE%.zip MD5 > %ARCHIVE%.md5
artifacts:
- path: dist\$(ARCHIVE).zip
- path: dist\$(ARCHIVE).md5