forked from Bill-Gray/PDCursesMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
300 lines (246 loc) · 9.57 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
version: 4.0.2.{build}
shallow_clone: true
clone_depth: 1
skip_commits:
files:
- .travis.yml
image: Visual Studio 2017
configuration:
#- MinSizeRel // https://bugzilla.libsdl.org/show_bug.cgi?id=4233
- Release
- Debug
build:
parallel: true
environment:
DIST_DIR: '%APPVEYOR_BUILD_FOLDER%\dist'
matrix:
- TOOLCHAIN: Watcom19
TARGET: os2
CMAKE_ARGS: '-DPDC_OS2_BUILD=ON'
ARCHIVE_BASENAME: OS2V2
- TOOLCHAIN: Watcom19
TARGET: dos
CMAKE_ARGS: '-DPDC_DOS_BUILD=ON'
ARCHIVE_BASENAME: DOS16
- TOOLCHAIN: Watcom19
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOS_BUILD=ON'
ARCHIVE_BASENAME: DOS32
- TOOLCHAIN: Watcom19
TARGET: dos
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON'
ARCHIVE_BASENAME: DOSVGA16
- TOOLCHAIN: Watcom19
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON'
ARCHIVE_BASENAME: DOSVGA32
- TOOLCHAIN: Watcom19
TARGET: dos
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON'
ARCHIVE_BASENAME: WIDE_DOSVGA16
- TOOLCHAIN: Watcom19
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON'
ARCHIVE_BASENAME: WIDE_DOSVGA32
- TOOLCHAIN: Watcom19
TARGET: dos
CMAKE_ARGS: '-DPDC_DOSVT_BUILD=ON'
ARCHIVE_BASENAME: VT16
- TOOLCHAIN: Watcom19
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOSVT_BUILD=ON'
ARCHIVE_BASENAME: VT32
- TOOLCHAIN: Watcom19
TARGET: win32
CMAKE_ARGS: '-DPDC_WIDE=ON'
ARCHIVE_BASENAME: WIDE_X86
- TOOLCHAIN: Watcom19
TARGET: win32
CMAKE_ARGS: '-DPDC_UTF8=ON'
ARCHIVE_BASENAME: UTF8_X86
- TOOLCHAIN: Watcom20
TARGET: os2
CMAKE_ARGS: '-DPDC_OS2_BUILD=ON'
ARCHIVE_BASENAME: OS2V2
- TOOLCHAIN: Watcom20
TARGET: dos
CMAKE_ARGS: '-DPDC_DOS_BUILD=ON'
ARCHIVE_BASENAME: DOS16
- TOOLCHAIN: Watcom20
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOS_BUILD=ON'
ARCHIVE_BASENAME: DOS32
- TOOLCHAIN: Watcom20
TARGET: dos
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON'
ARCHIVE_BASENAME: DOSVGA16
- TOOLCHAIN: Watcom20
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON'
ARCHIVE_BASENAME: DOSVGA32
- TOOLCHAIN: Watcom20
TARGET: dos
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON'
ARCHIVE_BASENAME: WIDE_DOSVGA16
- TOOLCHAIN: Watcom20
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON'
ARCHIVE_BASENAME: WIDE_DOSVGA32
- TOOLCHAIN: Watcom20
TARGET: dos
CMAKE_ARGS: '-DPDC_DOSVT_BUILD=ON'
ARCHIVE_BASENAME: VT16
- TOOLCHAIN: Watcom20
TARGET: dos32
CMAKE_ARGS: '-DPDC_DOSVT_BUILD=ON'
ARCHIVE_BASENAME: VT32
- TOOLCHAIN: Watcom20
TARGET: win32
CMAKE_ARGS: '-DPDC_WIDE=ON'
ARCHIVE_BASENAME: WIDE_X86
- TOOLCHAIN: Watcom20
TARGET: win32
CMAKE_ARGS: '-DPDC_UTF8=ON'
ARCHIVE_BASENAME: UTF8_X86
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
ARCHITECTURE: amd64_x86
CMAKE_ARGS: '-DPDC_WIDE=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: WIDE_x86
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
ARCHITECTURE: amd64_x86
CMAKE_ARGS: '-DPDC_UTF8=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: UTF8_x86
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
ARCHITECTURE: amd64
CMAKE_ARGS: '-DPDC_WIDE=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: WIDE_x64
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
ARCHITECTURE: amd64
CMAKE_ARGS: '-DPDC_UTF8=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: UTF8_x64
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
ARCHITECTURE: amd64_arm
CMAKE_ARGS: '-DPDC_WIDE=ON -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF'
ARCHIVE_BASENAME: WIDE_ARM
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
ARCHITECTURE: amd64_arm
CMAKE_ARGS: '-DPDC_UTF8=ON -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF'
ARCHIVE_BASENAME: UTF8_ARM
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64_arm
CMAKE_ARGS: '-DPDC_WIDE=ON -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF'
ARCHIVE_BASENAME: WIDE_ARM
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64_arm
CMAKE_ARGS: '-DPDC_UTF8=ON -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF'
ARCHIVE_BASENAME: UTF8_ARM
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64_arm64
CMAKE_ARGS: '-DPDC_WIDE=ON -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF'
ARCHIVE_BASENAME: WIDE_ARM64
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64_arm64
CMAKE_ARGS: '-DPDC_UTF8=ON -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF'
ARCHIVE_BASENAME: UTF8_ARM64
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64_x86
CMAKE_ARGS: '-DPDC_WIDE=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: WIDE_x86
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64_x86
CMAKE_ARGS: '-DPDC_UTF8=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: UTF8_x86
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64
CMAKE_ARGS: '-DPDC_WIDE=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: WIDE_x64
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
ARCHITECTURE: amd64
CMAKE_ARGS: '-DPDC_UTF8=ON -DPDC_SDL2_BUILD=ON -DPDC_SDL2_DEPS_BUILD=ON'
ARCHIVE_BASENAME: UTF8_x64
init:
- echo BUILD_NUMBER=%APPVEYOR_BUILD_NUMBER%
# curl defaults --keepalive-time 60 --max-time ?? about 10 minutes --connect-timeout ??
- set CURL_ARGS=--location --fail --show-error --keepalive-time 10 --connect-timeout 10 --max-time 60
# Setup TOOLCHAIN for Visual Studio build tools
- if not DEFINED TOOLCHAIN (
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" (
set "TOOLCHAIN=VS2015"
) else if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" (
set "TOOLCHAIN=VS2017"
) else if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019" (
set "TOOLCHAIN=VS2019"
)
)
# Setup TOOLCHAIN group variable as CMake Generator
- if "%TOOLCHAIN:~0,4%"=="VS20" (
set "GENERATOR=NMake Makefiles"
) else if "%TOOLCHAIN:~0,6%"=="Watcom" (
set "GENERATOR=Watcom WMake" &&
set "CMAKE_ARGS=-DPDC_BUILD_SHARED=OFF -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF %CMAKE_ARGS%" &&
set "WATCOM=%HOMEDRIVE%%HOMEPATH%\watcom"
)
# Setup TOOLCHAIN specific variable
- if "%TOOLCHAIN%"=="Watcom19" (
set "WATCOM_VERSION=Open Watcom 1.9" &&
set "ARTIFACT_NAME=open-watcom-c-win32-1.9.exe" &&
set "ARTIFACT_URL=https://sourceforge.net/projects/openwatcom/files/open-watcom-1.9" &&
set "PATH=%WATCOM%\BINNT;%WATCOM%\BINW;%PATH%"
) else if "%TOOLCHAIN%"=="Watcom20" (
set "WATCOM_VERSION=Open Watcom 2.0" &&
set "ARTIFACT_NAME=open-watcom-2_0-c-win-x64.exe" &&
set "ARTIFACT_URL=https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build" &&
set "PATH=%WATCOM%\BINNT64;%WATCOM%\BINW;%PATH%"
) else if "%TOOLCHAIN%"=="VS2015" (
set "VCVARSALL=%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
) else if "%TOOLCHAIN%"=="VS2017" (
set "VCVARSALL=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat"
) else if "%TOOLCHAIN%"=="VS2019" (
set "VCVARSALL=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat"
)
# Setup Archive name
- set "ARCHIVE=%TOOLCHAIN%_%CONFIGURATION%_%ARCHIVE_BASENAME%_%APPVEYOR_BUILD_NUMBER%"
install:
# Open Watcom download and install
- if "%TOOLCHAIN:~0,6%"=="Watcom" (
echo Installing %WATCOM_VERSION% &&
appveyor-retry curl %CURL_ARGS% --output "%TEMP%\%ARTIFACT_NAME%" "%ARTIFACT_URL%/%ARTIFACT_NAME%" &&
7z x -y "%TEMP%\%ARTIFACT_NAME%" -o"%WATCOM%"
)
- cmake --version
before_build:
- if exist "%VCVARSALL%" (
call "%VCVARSALL%" %ARCHITECTURE%
)
- if "%TARGET%"=="dos" (
set "CMAKE_ARGS=-DCMAKE_TOOLCHAIN_FILE=..\cmake\watcom_open_dos16_toolchain.cmake %CMAKE_ARGS%" &&
set "INCLUDE=%WATCOM%\H;%INCLUDE%"
) else if "%TARGET%"=="dos32" (
set "CMAKE_ARGS=-DCMAKE_TOOLCHAIN_FILE=..\cmake\watcom_open_dos32_toolchain.cmake %CMAKE_ARGS%" &&
set "INCLUDE=%WATCOM%\H;%INCLUDE%"
) else if "%TARGET%"=="os2" (
set "CMAKE_ARGS=-DCMAKE_TOOLCHAIN_FILE=..\cmake\watcom_open_os2v2_toolchain.cmake %CMAKE_ARGS%" &&
set "INCLUDE=%WATCOM%\H;%WATCOM%\H\OS2;%INCLUDE%"
) else if "%TARGET%"=="win32" (
set "CMAKE_ARGS=-DCMAKE_TOOLCHAIN_FILE=..\cmake\watcom_open_win32_toolchain.cmake %CMAKE_ARGS%" &&
set "INCLUDE=%WATCOM%\H;%WATCOM%\H\NT;%INCLUDE%"
)
- if "%CONFIGURATION%"=="Debug" (
set "CMAKE_ARGS=-DPDCDEBUG=ON %CMAKE_ARGS%"
)
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION%
"-DCMAKE_INSTALL_PREFIX=%DIST_DIR%\%APPVEYOR_BUILD_WORKER_IMAGE%"
-DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% %CMAKE_ARGS%
..
cmake --build . --config %CONFIGURATION% --target install
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