forked from iPlug2/iPlug2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
470 lines (389 loc) · 12.6 KB
/
azure-pipelines.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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
variables:
buildDEPS: false
downloadDEPS: true
buildWeb: true
buildMac: true
buildWin: true
publishDownloads: false
publishPages: false
# buildNANOVG: true;
# buildLICE: false;
# buildCAIRO: false;
# buildAGG: false;
# buildCANVAS: false;
# buildInstallers: false #if true, the mac/win projects will build installers, rather than packaging individual binaries
configuration: 'Release'
target: 'All'
trigger:
- azure-pipelines
jobs:
# this job checks out the repository and optionally downloads pre-built dependencies, depending on buildDEPS
- job: DOWNLOAD_DEPS
condition: eq(variables.downloadDEPS, true)
steps:
- checkout: self
- bash: |
cd ./Dependencies/IGraphics
./download-igraphics-libs.sh
displayName: Download IGraphics Dependencies SRC
condition: eq(variables.buildDEPS, true)
- bash: |
cd $AGENT_TEMPDIRECTORY
wget https://github.com/iPlug2/iPlug2/releases/download/setup/IPLUG2_DEPS_MAC.zip
wget https://github.com/iPlug2/iPlug2/releases/download/setup/IPLUG2_DEPS_WIN.zip
displayName: Download IGraphics Dependencies BUILT
condition: eq(variables.buildDEPS, false)
- task: DownloadSecureFile@1
inputs:
secureFile: "VST2_SDK.zip"
displayName: Download VST2 SDK
condition: or(variables.buildMac, variables.buildWin)
- task: DownloadSecureFile@1
inputs:
secureFile: "AAX_SDK.zip"
displayName: Download AAX SDK
condition: or(variables.buildMac, variables.buildWin)
- task: DownloadSecureFile@1
inputs:
secureFile: "AGG.zip"
displayName: Download AGG
condition: or(variables.buildMac, variables.buildWin)
- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Agent.TempDirectory)/*.zip'
destinationFolder: '$(Agent.TempDirectory)'
cleanDestinationFolder: false
condition: eq(variables.buildDEPS, false)
- bash: |
mkdir ./Dependencies/Build
mv $AGENT_TEMPDIRECTORY/IPLUG2_DEPS_MAC/* ./Dependencies/Build
mv $AGENT_TEMPDIRECTORY/IPLUG2_DEPS_WIN/* ./Dependencies/Build
displayName: Move IGraphics Dependencies BUILT
condition: and(or(variables.buildMac, variables.buildWin), eq(variables.buildDEPS, false))
- bash: |
mv $AGENT_TEMPDIRECTORY/AAX_SDK/* ./Dependencies/IPlug/AAX_SDK
mv $AGENT_TEMPDIRECTORY/VST2_SDK/* ./Dependencies/IPlug/VST2_SDK
mkdir ./Dependencies/IGraphics/AGG
mv $AGENT_TEMPDIRECTORY/AGG/* ./Dependencies/IGraphics/AGG
rm $AGENT_TEMPDIRECTORY/*.zip
displayName: Move Secure File Dependencies
condition: and(or(variables.buildMac, variables.buildWin), eq(variables.buildDEPS, false))
- bash: |
cd ./Dependencies/IPlug
rm -r VST3_SDK
git clone --recursive https://github.com/steinbergmedia/vst3sdk.git VST3_SDK
rm -r VST3_SDK/vstgui4
rm -r VST3_SDK/doc
rm -r VST3_SDK/cmake
rm -r VST3_SDK/public.sdk/samples
rm -r VST3_SDK/.git
displayName: Download VST3 SDK
condition: or(variables.buildMac, variables.buildWin)
- bash: |
cd ./Dependencies/IPlug
rm -r WAM_SDK
git clone https://github.com/webaudiomodules/api.git WAM_SDK
rm -r WAM_SDK/.git
displayName: Download WAM SDK
condition: eq(variables.buildWeb, true)
- bash: |
cd ./Dependencies/IPlug
rm -r WAM_AWP
git clone https://github.com/jariseon/audioworklet-polyfill WAM_AWP
rm -r WAM_AWP/.git
displayName: Download WAM AWP
condition: eq(variables.buildWeb, true)
- bash: |
rm -r .git
cd ./Dependencies/Build/
find . -type f -iname \*.png -delete
displayName: Delete unwanted files
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)
archiveFile: '$(Build.ArtifactStagingDirectory)/SRC.zip'
includeRootFolder: false
- task: PublishPipelineArtifact@0
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'SRC'
displayName: Publish Source
- job: BUILD_WIN_DEPS
dependsOn: DOWNLOAD_DEPS
condition: and(eq(variables.buildDEPS, true), eq(variables.buildWin, true))
strategy:
matrix:
x86_RELEASE:
buildPlatform: 'Win32'
buildConfiguration: 'Release'
x64_RELEASE:
buildPlatform: 'x64'
buildConfiguration: 'Release'
x86_DEBUG:
buildPlatform: 'Win32'
buildConfiguration: 'Debug'
x64_DEBUG:
buildPlatform: 'x64'
buildConfiguration: 'Debug'
pool:
vmImage: 'vs2017-win2016'
steps:
- checkout: none
- template: Scripts/azure-get_src.yml
- task: VSBuild@1
inputs:
solution: 'Dependencies/IGraphics/IGraphicsLibraries.sln'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
displayName: Build Windows Dependencies
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'DEPS_BUILD_WIN_$(buildPlatform)_$(buildConfiguration)'
targetPath: 'Dependencies/Build/'
displayName: Publish Windows $(buildPlatform) $(buildConfiguration) Dependencies Artifacts
- job: PUBLISH_WIN_DEPS
condition: and(eq(variables.buildDEPS, true), eq(variables.buildWin, true))
dependsOn: BUILD_WIN_DEPS
steps:
- checkout: none
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'DEPS_BUILD_WIN_Win32_Release'
targetPath: 'Dependencies/Build/'
displayName: Download Win32_Release Artifact
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'DEPS_BUILD_WIN_Win32_Debug'
targetPath: 'Dependencies/Build/'
displayName: Download Win32_Debug Artifact
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'DEPS_BUILD_WIN_x64_Release'
targetPath: 'Dependencies/Build/'
displayName: Download x64_Release Artifact
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'DEPS_BUILD_WIN_x64_Debug'
targetPath: 'Dependencies/Build/'
displayName: Download x64_Debug Artifact
- task: DeleteFiles@1
inputs:
contents: 'Dependencies/Build/*.log'
- task: DeleteFiles@1
inputs:
contents: 'Dependencies/Build/tmp'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'IPLUG2_DEPS_WIN'
targetPath: 'Dependencies/Build/'
displayName: Publish Windows Dependencies Artifacts
- job: BUILD_WIN_AAX_LIBS
condition: and(eq(variables.buildDEPS, false), eq(variables.buildWin, true))
pool:
vmImage: 'vs2017-win2016'
steps:
- checkout: none
- task: DownloadSecureFile@1
inputs:
secureFile: "AAX_SDK.zip"
displayName: Download AAX SDK
- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Agent.TempDirectory)/*.zip'
destinationFolder: 'AAX_SDK'
cleanDestinationFolder: false
- bash: |
mkdir -p ./Dependencies/IPlug/AAX_SDK
mv AAX_SDK/* ./Dependencies/IPlug/
- task: VSBuild@1
inputs:
solution: 'Dependencies/IPlug/AAX_SDK/Libs/AAXLibrary/WinBuild/vs2017/AAXLibrary.sln'
vsVersion: '15.0'
platform: x64
configuration: Release
displayName: Compile AAX Library Visual Studio Solution x64
- task: VSBuild@1
inputs:
solution: 'Dependencies/IPlug/AAX_SDK/Libs/AAXLibrary/WinBuild/vs2017/AAXLibrary.sln'
vsVersion: '15.0'
platform: Win32
configuration: Release
displayName: Compile AAX Library Visual Studio Solution Win32
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'DEPS_AAX_LIB_WIN'
targetPath: 'Dependencies/IPlug/AAX_SDK/Libs/'
displayName: Publish Windows AAX Libs
- job: BUILD_MAC_DEPS
dependsOn: DOWNLOAD_DEPS
condition: and(eq(variables.buildDEPS, true), eq(variables.buildMac, true))
pool:
vmImage: 'macos-10.13'
steps:
- checkout: none
- template: Scripts/azure-get_src.yml
- bash: |
#tmp force cairo rebuild
rm -r ./Dependencies/Build/src/cairo
cd ./Dependencies/IGraphics
./build-igraphics-libs-mac.sh
cd $BUILD_SOURCESDIRECTORY
wget http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-apple-darwin.tar.xz
tar -xf clang+llvm-7.0.0-x86_64-apple-darwin.tar.xz -C $HOME
export PATH=$HOME/clang+llvm-7.0.0-x86_64-apple-darwin/bin:$PATH
echo "##vso[task.setvariable variable=PATH]$PATH"
cd $BUILD_SOURCESDIRECTORY/Dependencies/Extras/faust
./build-faust-mac.sh
cd $BUILD_SOURCESDIRECTORY/Dependencies/Extras/civetweb
./build-civetweb-mac.sh
displayName: Build macOS Dependencies
- bash: |
rm ./Dependencies/Build/*.log
rm -r ./Dependencies/Build/tmp
rm -r ./Dependencies/Build/src
displayName: Delete unwanted files
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'IPLUG2_DEPS_MAC'
targetPath: 'Dependencies/Build/'
displayName: Publish Mac Dependencies Artifacts
- job: BUILD_MAC_PROJECTS
condition: and(eq(variables.buildDEPS, false), eq(variables.buildMac, true))
dependsOn: DOWNLOAD_DEPS
strategy:
matrix:
NANOVG:
graphics: 'NANOVG'
# condition: eq(variables.buildNANOVG, true)
# CAIRO:
# graphics: 'CAIRO'
# condition: eq(variables.buildCAIRO, true)
# LICE:
# graphics: 'LICE'
# condition: eq(variables.buildLICE, true)
# AGG:
# graphics: 'AGG'
# condition: eq(variables.buildAGG, true)
pool:
vmImage: 'macos-10.13'
steps:
- checkout: none
- template: Scripts/azure-get_src.yml
- template: azure-projects.yml
parameters:
platform: Scripts/azure-project-mac.yml
graphics: $(graphics)
- job: BUILD_WIN_PROJECTS
condition: and(eq(variables.buildDEPS, false), eq(variables.buildWin, true))
dependsOn:
- DOWNLOAD_DEPS
- BUILD_WIN_AAX_LIBS
strategy:
matrix:
NANOVG:
graphics: 'NANOVG'
# condition: eq(variables.buildNANOVG, true)
# CAIRO:
# graphics: 'CAIRO'
# condition: eq(variables.buildCAIRO, true)
# LICE:
# graphics: 'LICE'
# condition: eq(variables.buildLICE, true)
# AGG:
# graphics: 'AGG'
# condition: eq(variables.buildAGG, true)
pool:
vmImage: 'vs2017-win2016'
steps:
- checkout: none
- template: Scripts/azure-get_src.yml
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'DEPS_AAX_LIB_WIN'
targetPath: 'Dependencies/IPlug/AAX_SDK/Libs/'
- template: azure-projects.yml
parameters:
platform: Scripts/azure-project-win.yml
graphics: $(graphics)
- job: BUILD_WEB_PROJECTS
condition: and(eq(variables.buildDEPS, false), eq(variables.buildWeb, true))
dependsOn: DOWNLOAD_DEPS
strategy:
matrix:
NANOVG:
graphics: 'NANOVG'
# condition: eq(variables.buildNANOVG, true)
CANVAS:
graphics: 'CANVAS'
# condition: eq(variables.buildCANVAS, true)
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: none
- bash: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
displayName: Install emscripten
- template: Scripts/azure-get_src.yml
- template: azure-projects.yml
parameters:
platform: Scripts/azure-project-web.yml
graphics: $(graphics)
- job: PUBLISH_WEBSITE_DOWNLOADS
condition: eq(variables.publishDownloads, true)
dependsOn:
- BUILD_MAC_PROJECTS
- BUILD_WIN_PROJECTS
strategy:
matrix:
NANOVG:
graphics: 'NANOVG'
# condition: eq(variables.buildNANOVG, true)
# CAIRO:
# graphics: 'CAIRO'
# condition: eq(variables.buildCAIRO, true)
# LICE:
# graphics: 'LICE'
# condition: eq(variables.buildLICE, true)
# AGG:
# graphics: 'AGG'
# condition: eq(variables.buildAGG, true)
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: none
- template: azure-projects.yml
parameters:
platform: Scripts/azure-project-upload.yml
graphics: $(graphics)
platformStr: 'MAC'
- template: azure-projects.yml
parameters:
platform: Scripts/azure-project-upload.yml
graphics: $(graphics)
platformStr: 'WIN'
- job: PUBLISH_WEBSITE_PAGES
condition: eq(variables.publishWebsite, true)
dependsOn:
- BUILD_WEB_PROJECTS
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: none
- bash: |
git clone https://olilarkin:[email protected]/iPlug2/iPlug2.github.io.git $BUILD_SOURCESDIRECTORY
displayName: Clone website repo
env:
GITHUB_PAT: $(GITHUB_PAT)
- template: azure-projects.yml
parameters:
platform: Scripts/azure-project-upload.yml
graphics: 'NANOVG'
platformStr: 'WEB'
- template: azure-projects.yml
parameters:
platform: Scripts/azure-project-upload.yml
graphics: 'CANVAS'
platformStr: 'WEB'