forked from surge-synthesizer/surge-fx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
190 lines (158 loc) · 5.09 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
# Build the surge-fx with JUCE buidls
trigger:
- master
pr:
- master
jobs:
- job: Build
strategy:
matrix:
mac:
imageName: 'macos-10.13'
isMac: True
win:
imageName: 'vs2017-win2016'
isWindows: True
win32bit:
imageName: 'vs2017-win2016'
isWindows32: True
linux:
imageName: 'ubuntu-16.04'
isLinux: True
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 1
# submodules: recursive # can't do submodules here b'cuz depth=1 fails with Github
- bash: |
git submodule update --init --recursive
displayName: Get Surge SubModule
- bash: |
make -f Makefile.mac dmg
mkdir products/
mv *dmg products
displayName: Build Mac Plugins
condition: variables.isMac
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'MACOS_BUILD'
targetPath: 'products/'
displayName: Publish Mac DMG
condition: variables.isMac
- bash: |
mkdir assets
mkdir products
curl -o assets/juce-5.4.3-windows.zip https://d30pueezughrda.cloudfront.net/juce/juce-5.4.3-windows.zip
cd assets
unzip juce-5.4.3-windows.zip
cd ..
assets/JUCE/Projucer.exe --resave surge-fx.jucer
displayName: Build Windows sln file
condition: or(variables.isWindows, variables.isWindows32)
- task: MSBuild@1
inputs:
solution: 'Builds\VisualStudio2017\SurgeEffectsBank.sln'
maximumCpuCount: true
platform: 'x64'
configuration: 'Release'
condition: variables.isWindows
displayName: Build Windows x64
- bash: |
cd Builds/VisualStudio2017/x64
mkdir assets
mv Release/Standalone\ Plugin/SurgeEffectsBank.exe assets/
mv Release/VST3/SurgeEffectsBank.vst3 assets/
7z.exe a ../../../products/surge-effects-bank-win.zip assets
displayName: Build Windows Zip
condition: variables.isWindows
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'WINDOWS_BUILD'
targetPath: 'products/'
displayName: Publish Windows Zip
condition: variables.isWindows
- task: MSBuild@1
inputs:
solution: 'Builds\VisualStudio2017\SurgeEffectsBank.sln'
maximumCpuCount: true
platform: 'Win32'
configuration: 'ReleaseWin32'
condition: variables.isWindows32
displayName: Build Windows Win32
- bash: |
cd Builds/VisualStudio2017/Win32
mkdir assets
mv ReleaseWin32/Standalone\ Plugin/SurgeEffectsBank.exe assets/
mv ReleaseWin32/VST3/SurgeEffectsBank.vst3 assets/
7z.exe a ../../../products/surge-effects-bank-win-32.zip assets
displayName: Build Windows32 Zip
condition: variables.isWindows32
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'WINDOWS32_BUILD'
targetPath: 'products/'
displayName: Publish Windows32 Zip
condition: variables.isWindows32
- bash: |
# This is so close to working. But I don't find curl and I don't find freetype in incluldes.
set -x
sudo apt-get install -y libwebkit2gtk-4.0
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y alsa-base
sudo apt-get install -y libasound2-dev
sudo apt-get install -y jack
sudo apt-get install -y libjack-dev
sudo apt-get install -y libfreetype6-dev
# OK so what the heck is going on
echo "===PKG CONFIGS==="
pkg-config --cflags freetype2
pkg-config --cflags libcurl
ls -al /usr/include/freetype2
Xvfb :9898 &
export DISPLAY=:9898
sleep 3 # give xvfb some time to start
make -k -f Makefile.lin zip
displayName: Build Linux Standalone
condition: variables.isLinux
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'LINUX_BUILD'
targetPath: 'products/'
displayName: Publish Linux tgz
condition: variables.isLinux
- job: UpdateGithubRelease
dependsOn: Build
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
steps:
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'MACOS_BUILD'
targetPath: $(Build.ArtifactStagingDirectory)
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'WINDOWS_BUILD'
targetPath: $(Build.ArtifactStagingDirectory)
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'WINDOWS32_BUILD'
targetPath: $(Build.ArtifactStagingDirectory)
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'LINUX_BUILD'
targetPath: $(Build.ArtifactStagingDirectory)
- bash: |
scripts/release-notes.sh > $(Build.ArtifactStagingDirectory)/ReleaseNotes.md
ls $(Build.ArtifactStagingDirectory)
displayName: Fake up release notes
- task: GitHubRelease@0
displayName: "Update Github Release"
inputs:
gitHubConnection: surge-rackupdater
repositoryName: surge-synthesizer/surge-fx
action: edit
tag: Nightly
target: '$(Build.SourceVersion)'
addChangeLog: false
releaseNotesFile: $(Build.ArtifactStagingDirectory)/ReleaseNotes.md
assets: $(Build.ArtifactStagingDirectory)/*.*