Repository navigation
308 lines (287 loc) · 10.3 KB
/
Copy pathrelease.yml
File metadata and controls
308 lines (287 loc) · 10.3 KB
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
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
build-vst3:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
include:
- name: Linux x86_64 VST3 Release
runner: ubuntu-24.04
platform: linux-x86_64
experimental: false
run_tests: "1"
strip: "1"
- name: macOS Universal VST3 Release
runner: macos-15
platform: macos-universal
dpf_target: macos-10.15
experimental: true
build_driver: dpf-action
- name: Windows x86_64 VST3 Release
runner: ubuntu-22.04
platform: windows-x86_64
dpf_target: win64
experimental: true
build_driver: dpf-action
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Install Linux build dependencies
if: matrix.build_driver != 'dpf-action'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
cmake \
g++ \
pkg-config \
libdbus-1-dev \
libgl1-mesa-dev \
libx11-dev \
libxcursor-dev \
libxext-dev \
libxrandr-dev \
libxrender-dev
- name: Show toolchain versions
shell: bash
run: |
cmake --version
ctest --version
- name: Resolve release version
id: version
shell: bash
run: |
version="${GITHUB_REF_NAME#v}"
if [ -z "$version" ]; then
echo "Unable to derive version from tag: $GITHUB_REF_NAME" >&2
exit 1
fi
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Build, test, and package (CMake)
if: matrix.build_driver != 'dpf-action'
shell: bash
env:
DOWNSPOUT_BUILD_DIR: build/release-${{ matrix.platform }}
DOWNSPOUT_DIST_DIR: ${{ runner.temp }}/downspout-dist
DOWNSPOUT_RELEASE_PLATFORM: ${{ matrix.platform }}
DOWNSPOUT_VERSION: ${{ steps.version.outputs.version }}
DOWNSPOUT_RUN_TESTS: "1"
DOWNSPOUT_STRIP: "1"
run: bash scripts/package-release.sh
- name: Select POSIX-threads MinGW toolchain
if: matrix.dpf_target == 'win64'
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends g++-mingw-w64-x86-64
# Ubuntu ships both MinGW thread models and auto mode selects win32,
# whose libstdc++ provides no std::thread/std::mutex. Installing here
# and pinning with --set puts the link group in manual mode, which the
# DPF action's own apt install cannot revert.
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
x86_64-w64-mingw32-g++ -v 2>&1 | grep -i 'thread model'
- name: Build with DPF CMake action
if: matrix.build_driver == 'dpf-action'
# Best effort: a plugin that fails to cross-compile must not sink the
# whole platform. Packaging below ships whatever bundles did build and
# annotates the run with what is missing.
continue-on-error: true
uses: distrho/dpf-cmake-action@v1
with:
target: ${{ matrix.dpf_target }}
dpf_path: third_party/DPF
release: false
extraargs: >-
-DBUILD_TESTING=OFF
-DDOWNSPOUT_BUILD_SIDECAR=OFF
-DDOWNSPOUT_BUILD_AI_COORDINATOR=OFF
- name: Package DPF action bundles
if: matrix.build_driver == 'dpf-action'
shell: bash
env:
DOWNSPOUT_BIN_DIR: bin
DOWNSPOUT_DIST_DIR: ${{ runner.temp }}/downspout-dist
DOWNSPOUT_RELEASE_PLATFORM: ${{ matrix.platform }}
DOWNSPOUT_VERSION: ${{ steps.version.outputs.version }}
DOWNSPOUT_BUILD_SIDECAR: "OFF"
run: bash scripts/package-built-bundles.sh
- name: Upload workflow artifact
uses: actions/upload-artifact@v4
with:
name: downspout-${{ steps.version.outputs.version }}-${{ matrix.platform }}-vst3
path: ${{ runner.temp }}/downspout-dist/*
if-no-files-found: ${{ matrix.build_driver == 'dpf-action' && 'warn' || 'error' }}
retention-days: 30
publish:
name: Publish GitHub Release
runs-on: ubuntu-24.04
timeout-minutes: 10
needs: build-vst3
if: ${{ always() }}
steps:
- name: Check out release tag
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 1
- name: Download release artifacts
uses: actions/download-artifact@v4
with:
path: ${{ runner.temp }}/release-assets
pattern: downspout-*-vst3
merge-multiple: true
- name: Create GitHub release
shell: bash
env:
GH_TOKEN: ${{ github.token }}
ASSET_DIR: ${{ runner.temp }}/release-assets
run: |
mapfile -t assets < <(find "$ASSET_DIR" -type f \( -name '*.zip' -o -name '*.sha256' \) | sort)
if [ "${#assets[@]}" -lt 2 ]; then
echo "Expected at least the Linux release zip and checksum, found ${#assets[@]}:" >&2
printf '%s\n' "${assets[@]}" >&2
exit 1
fi
version="${GITHUB_REF_NAME#v}"
if [ -z "$version" ]; then
echo "Unable to derive version from tag: $GITHUB_REF_NAME" >&2
exit 1
fi
if [[ ! -f "$ASSET_DIR/downspout-${version}-linux-x86_64-vst3.zip" || ! -f "$ASSET_DIR/downspout-${version}-linux-x86_64-vst3.zip.sha256" ]]; then
echo "Linux release assets are missing; refusing to publish an incomplete release." >&2
exit 1
fi
notes_file="$RUNNER_TEMP/release-notes.md"
{
echo "VST3 release builds for ${GITHUB_REF_NAME}."
echo
echo "Release assets:"
for asset in "${assets[@]}"; do
echo "- $(basename "$asset")"
done
echo
echo "Included plugin bundles:"
echo "- campione.vst3"
echo "- bassgen.vst3"
echo "- p_mix.vst3"
echo "- e_mix.vst3"
echo "- m_mix.vst3"
echo "- t_mix.vst3"
echo "- mixgen.vst3"
echo "- loopdelay.vst3"
echo "- lightverb.vst3"
echo "- melgen.vst3"
echo "- rift.vst3"
echo "- orchid.vst3"
echo "- ambo.vst3"
echo "- drumgen.vst3"
echo "- drumkit.vst3"
echo "- cadence.vst3"
echo "- arpgen.vst3"
echo "- counterpointer.vst3"
echo "- gremlin.vst3"
echo "- gremlin_driver.vst3"
echo "- ground.vst3"
echo "- floozy.vst3"
echo "- basilico.vst3"
echo "- canticle.vst3"
echo "- magneto.vst3"
echo "- thumper.vst3"
echo "- snatch.vst3"
echo "- tops.vst3"
echo "- clatter.vst3"
echo "- spense.vst3"
echo "- heavyverb.vst3"
echo "- interleaver.vst3"
echo "- keyframe.vst3"
echo "- primefold.vst3"
echo "- quefrency.vst3"
echo "- moka.vst3"
echo "- luma.vst3"
echo "- paunchlad.vst3"
echo "- lifeform.vst3"
echo "- bassops.vst3"
echo "- bubbles.vst3"
echo "- damiano.vst3"
echo "- flues_synth_driver.vst3"
echo "- gater.vst3"
echo "- midiscribe.vst3"
echo "- sidecar.vst3"
echo "- plank.vst3"
echo "- pratt.vst3"
echo "- retune.vst3"
echo "- sprout.vst3"
echo "- markov.vst3"
echo "- xoxolo.vst3"
echo "- syrinx.vst3"
echo "- tuney_vst.vst3"
echo "- harmonic_atlas.vst3"
echo "- conductor.vst3"
echo "- drift.vst3"
echo "- mnemosyne.vst3"
echo "- polymeter.vst3"
echo "- oracle.vst3"
echo "- mosaic.vst3"
echo "- resonance_garden.vst3"
echo "- orbit.vst3"
echo "- guardian.vst3"
echo "- chipper.vst3"
echo "- skream.vst3"
echo "- worms.vst3"
echo "- ghost.vst3"
echo "- spliff.vst3"
echo "- helterskelter.vst3"
echo "- treatment.vst3"
echo "- voxmod.vst3"
echo "- sinevox.vst3"
echo "- beards.vst3"
echo "- trajectory.vst3"
echo "- fathom.vst3"
echo "- qune.vst3"
echo "- prism.vst3"
echo "- mouth.vst3"
echo "- sieve.vst3"
echo "- zmorph.vst3"
echo "- scope.vst3"
echo "- grist.vst3"
echo "- sam.vst3"
echo "- ladder.vst3"
echo "- glue.vst3"
echo "- octet.vst3"
echo "- trio.vst3"
echo "- infra.vst3"
echo "- spindown.vst3"
echo "- wheelhouse.vst3"
echo "- whirligig.vst3"
echo "- chorale.vst3"
echo "- silken.vst3"
echo "- fresco.vst3"
echo "- strata.vst3"
echo "- quartet.vst3"
echo "- monochord.vst3"
echo "- nam.vst3"
echo "- bore.vst3"
echo
echo "Sidecar is currently Linux-only and is omitted from macOS and Windows release assets."
echo "macOS and Windows release builds are best-effort and do not block Linux publication."
echo
echo "Each .sha256 asset contains the checksum for the matching zip."
} > "$notes_file"
gh release create "$GITHUB_REF_NAME" \
"${assets[@]}" \
--verify-tag \
--title "downspout $GITHUB_REF_NAME" \
--notes-file "$notes_file"