-
Notifications
You must be signed in to change notification settings - Fork 4
351 lines (291 loc) · 11.7 KB
/
nightly.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
name: Nightly
on:
push:
branches:
- main
workflow_dispatch:
jobs:
windows_release:
name: Windows Nightly Release
if: contains(toJson(github.event.commits), 'Update Nightlies')
runs-on: windows-2022
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install SDKs
uses: actions/checkout@v2
with:
repository: Chowdhury-DSP/Plugins_SDKs
path: SDKs
token: ${{ secrets.OUR_GITHUB_PAT }}
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Choco Install PuTTy
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install putty.portable
- name: Choco Install Inno Setup
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install innosetup
- name: Install AzureSignTool
run: dotnet tool install --global AzureSignTool
- name: Setup Products directory
run: mkdir products
# - name: Setup debug session
# uses: mxschmitt/action-tmate@v3
- name: Build ChowCentaur
if: contains(toJson(github.event.commits), 'ChowCentaur')
run: bash plugins/ChowCentaur/win_build.sh
- name: Build ChowTape
if: contains(toJson(github.event.commits), 'ChowTape')
run: bash plugins/ChowTape/win_build.sh
env:
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
OUR_GITHUB_PAT: ${{ secrets.OUR_GITHUB_PAT }}
AZURE_KEY_VAULT_URI: ${{ secrets.AZURE_KEY_VAULT_URI }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_CERT_NAME: ${{ secrets.AZURE_CERT_NAME }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
- name: Build ChowMatrix
if: contains(toJson(github.event.commits), 'ChowMatrix')
run: bash plugins/ChowMatrix/win_build.sh
env:
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
- name: Build ChowPhaser
if: contains(toJson(github.event.commits), 'ChowPhaser')
run: bash plugins/ChowPhaser/win_build.sh
- name: Build ChowKick
if: contains(toJson(github.event.commits), 'ChowKick')
run: bash plugins/ChowKick/win_build.sh
- name: Build BYOD
if: contains(toJson(github.event.commits), 'BYOD')
run: bash plugins/BYOD/win_build.sh
env:
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
OUR_GITHUB_PAT: ${{ secrets.OUR_GITHUB_PAT }}
AZURE_KEY_VAULT_URI: ${{ secrets.AZURE_KEY_VAULT_URI }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_CERT_NAME: ${{ secrets.AZURE_CERT_NAME }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
- name: Build ChowMultiTool
if: contains(toJson(github.event.commits), 'ChowMultiTool')
run: bash plugins/ChowMultiTool/win_build.sh
env:
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
AZURE_KEY_VAULT_URI: ${{ secrets.AZURE_KEY_VAULT_URI }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_CERT_NAME: ${{ secrets.AZURE_CERT_NAME }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
- name: Deploy Nightly Builds
uses: garygrossgarten/github-action-scp@release
with:
local: products
remote: Library/Web/chowdsp/nightly_plugins
host: ccrma-gate.stanford.edu
username: jatin
password: ${{ secrets.CCRMA_PASS }}
- name: Send email notification
if: always()
uses: dawidd6/action-send-mail@v2
with:
server_address: smtp.gmail.com
server_port: 465
username: chowdsp
password: ${{ secrets.GMAIL_PASS }}
subject: "ChowDSP ${{ github.job }} completed with status: ${{ job.status }}"
body: "ChowDSP ${{ github.job }} has completed.\n\nRunning on commit: ${{ github.event.head_commit.message }}\nStatus: ${{ job.status }}"
from: ChowDSP Nightly Release Pipeline (Windows)
macos_release:
name: Mac Nightly Release
if: contains(toJson(github.event.commits), 'Update Nightlies')
runs-on: macos-13
steps:
- name: Set Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Checkout repo
uses: actions/checkout@v2
- name: Install SDKs
uses: actions/checkout@v2
with:
repository: Chowdhury-DSP/Plugins_SDKs
path: SDKs
token: ${{ secrets.OUR_GITHUB_PAT }}
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Download Packages installer build tool
run: wget http://s.sudre.free.fr/Software/files/Packages.dmg
- name: Mount Packages image
run: hdiutil attach Packages.dmg
- name: Install Packages
run: sudo installer -pkg /Volumes/Packages\ 1.2.10/Install\ Packages.pkg -target /
- name: Install npm packages
run: npm install -g git+https://github.com/jatinchowdhury18/notarize-cli
- name: Install putty
run: brew install putty
- name: Setup temporary keychain and add installer signing certificate
uses: apple-actions/import-codesign-certs@v1
with:
keychain-password: ${{ secrets.MAC_CERTIFICATES_PASS }}
p12-file-base64: ${{ secrets.MAC_CERTIFICATES_BASE64 }}
p12-password: ${{ secrets.MAC_CERTIFICATES_PASS }}
- name: Setup temporary keychain and add installer signing certificate
uses: apple-actions/import-codesign-certs@v1
with:
keychain-password: ${{ secrets.MAC_CERTIFICATES_PASS }}
p12-file-base64: ${{ secrets.MAC_INSTALLER_CERTIFICATES_BASE64 }}
p12-password: ${{ secrets.MAC_CERTIFICATES_PASS }}
create-keychain: 'false'
- name: Setup Products directory
run: mkdir products
# - name: Setup debug session
# uses: mxschmitt/action-tmate@v3
- name: Build ChowCentaur
if: contains(toJson(github.event.commits), 'ChowCentaur')
run: bash plugins/ChowCentaur/mac_build.sh
env:
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
INSTALLER_PASS: ${{ secrets.MAC_INSTALLER_PASS }}
- name: Build ChowTape
if: contains(toJson(github.event.commits), 'ChowTape')
run: bash plugins/ChowTape/mac_build.sh
env:
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
INSTALLER_PASS: ${{ secrets.MAC_INSTALLER_PASS }}
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
- name: Build ChowMatrix
if: contains(toJson(github.event.commits), 'ChowMatrix')
run: bash plugins/ChowMatrix/mac_build.sh
env:
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
INSTALLER_PASS: ${{ secrets.MAC_INSTALLER_PASS }}
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
- name: Build ChowPhaser
if: contains(toJson(github.event.commits), 'ChowPhaser')
run: bash plugins/ChowPhaser/mac_build.sh
env:
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
INSTALLER_PASS: ${{ secrets.MAC_INSTALLER_PASS }}
- name: Build ChowKick
if: contains(toJson(github.event.commits), 'ChowKick')
run: bash plugins/ChowKick/mac_build.sh
env:
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
INSTALLER_PASS: ${{ secrets.MAC_INSTALLER_PASS }}
- name: Build BYOD
if: contains(toJson(github.event.commits), 'BYOD')
run: bash plugins/BYOD/mac_build.sh
env:
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
INSTALLER_PASS: ${{ secrets.MAC_INSTALLER_PASS }}
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
OUR_GITHUB_PAT: ${{ secrets.OUR_GITHUB_PAT }}
- name: Build ChowMultiTool
if: contains(toJson(github.event.commits), 'ChowMultiTool')
run: bash plugins/ChowMultiTool/mac_build.sh
env:
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
INSTALLER_PASS: ${{ secrets.MAC_INSTALLER_PASS }}
CCRMA_PASS: ${{ secrets.CCRMA_PASS }}
- name: Deploy Nightly Builds
uses: garygrossgarten/github-action-scp@release
with:
local: products
remote: Library/Web/chowdsp/nightly_plugins
host: ccrma-gate.stanford.edu
username: jatin
password: ${{ secrets.CCRMA_PASS }}
- name: Send email notification
if: always()
uses: dawidd6/action-send-mail@v2
with:
server_address: smtp.gmail.com
server_port: 465
username: chowdsp
password: ${{ secrets.GMAIL_PASS }}
subject: "ChowDSP ${{ github.job }} completed with status: ${{ job.status }}"
body: "ChowDSP ${{ github.job }} has completed.\n\nRunning on commit: ${{ github.event.head_commit.message }}\nStatus: ${{ job.status }}"
from: ChowDSP Nightly Release Pipeline (MacOS)
linux_release:
name: Linux Nightly Release
if: contains(toJson(github.event.commits), 'Update Nightlies')
runs-on: ubuntu-20.04
steps:
- name: System Info
run: more /etc/os-release
- name: Checkout repo
uses: actions/checkout@v2
- name: Install SDKs
uses: actions/checkout@v2
with:
repository: Chowdhury-DSP/Plugins_SDKs
path: SDKs
token: ${{ secrets.OUR_GITHUB_PAT }}
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Install Linux Deps
if: runner.os == 'Linux'
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main"
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install clang-12 -y
sudo apt install -y g++-11
g++-11 --version
sudo apt-get update
sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev libjack-jackd2-dev lv2-dev
- name: Setup Products directory
run: mkdir products
- name: Build ChowCentaur
if: contains(toJson(github.event.commits), 'ChowCentaur')
run: bash plugins/ChowCentaur/linux_build.sh
- name: Build ChowTape
if: contains(toJson(github.event.commits), 'ChowTape')
run: bash plugins/ChowTape/linux_build.sh
- name: Build ChowMatrix
if: contains(toJson(github.event.commits), 'ChowMatrix')
run: bash plugins/ChowMatrix/linux_build.sh
- name: Build ChowPhaser
if: contains(toJson(github.event.commits), 'ChowPhaser')
run: bash plugins/ChowPhaser/linux_build.sh
- name: Build ChowKick
if: contains(toJson(github.event.commits), 'ChowKick')
run: bash plugins/ChowKick/linux_build.sh
# - name: Setup debug session
# uses: mxschmitt/action-tmate@v3
- name: Build BYOD
if: contains(toJson(github.event.commits), 'BYOD')
run: bash plugins/BYOD/linux_build.sh
env:
OUR_GITHUB_PAT: ${{ secrets.OUR_GITHUB_PAT }}
- name: Build ChowMultiTool
if: contains(toJson(github.event.commits), 'ChowMultiTool')
run: bash plugins/ChowMultiTool/linux_build.sh
- name: Deploy Nightly Builds
uses: garygrossgarten/github-action-scp@release
with:
local: products
remote: Library/Web/chowdsp/nightly_plugins
host: ccrma-gate.stanford.edu
username: jatin
password: ${{ secrets.CCRMA_PASS }}
- name: Send email notification
if: always()
uses: dawidd6/action-send-mail@v2
with:
server_address: smtp.gmail.com
server_port: 465
username: chowdsp
password: ${{ secrets.GMAIL_PASS }}
subject: "ChowDSP ${{ github.job }} completed with status: ${{ job.status }}"
body: "ChowDSP ${{ github.job }} has completed.\n\nRunning on commit: ${{ github.event.head_commit.message }}\nStatus: ${{ job.status }}"
from: ChowDSP Nightly Release Pipeline (Linux)