-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
755 lines (739 loc) · 36.7 KB
/
action.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
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
name: 'DPF CMake builder action'
description: 'Builds DPF based plugins that use CMake as build system'
author: 'DISTRHO'
inputs:
target:
description: 'Target OS'
required: true
default: 'linux'
debug:
description: 'Build in debug mode'
required: false
default: false
lto:
description: 'Enable Link-Time-Optimizations'
required: false
default: false
dpf_path:
description: 'Relative path to DPF submodule'
required: false
default: 'dpf'
extraargs:
description: 'Extra arguments to pass into `cmake`'
required: false
default: ''
faust:
description: 'Install faust'
required: false
default: false
hvcc:
description: 'Install hvcc'
required: false
default: false
pawpaw:
description: 'Install and setup extra libraries'
required: false
default: false
release:
description: 'Automatically upload releases'
required: false
default: true
suffix:
description: 'Artifact and release filename suffix'
required: false
default: ''
outputs:
release_filename:
description: "Filename of generated release artifact"
value: ${{ env.RELEASE_FILENAME }}
sha8:
description: "SHA8 of job commit or pull request id"
value: ${{ github.event.pull_request.number || env.SHA8 }}
runs:
using: "composite"
steps:
- name: Setup env
shell: bash
run: |
echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV
echo "HOMEBREW_NO_AUTO_UPDATE=1" >> $GITHUB_ENV
echo "HOMEBREW_NO_INSTALL_CLEANUP=1" >> $GITHUB_ENV
echo "HVCC_COMMIT_HASH=${HVCC_COMMIT_HASH:=44708e75e2f7ddfcf4b6629b3693bcb6e0bd5358}" >> $GITHUB_ENV
echo "LIBGL_ALWAYS_SOFTWARE=true" >> $GITHUB_ENV
echo "PAWPAW_CACHE_VERSION=${PAWPAW_CACHE_VERSION:=1}" >> $GITHUB_ENV
echo "PAWPAW_COMMIT_HASH=${PAWPAW_COMMIT_HASH:=f9b573a83aff3f919557e791acfe6ac507a3fd3b}" >> $GITHUB_ENV
echo "PAWPAW_SKIP_GLIB=${PAWPAW_SKIP_GLIB:=1}" >> $GITHUB_ENV
echo "PAWPAW_SKIP_LV2=${PAWPAW_SKIP_LV2:=1}" >> $GITHUB_ENV
[ "$(id -u)" -ne 0 ] && [ -e /usr/bin/sudo ] && echo "SUDO=/usr/bin/sudo" >> $GITHUB_ENV
- name: Fix GitHub's mess (detect version)
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
[ ! -e /usr/bin/lsb_release ] && ${SUDO} apt-get update -qq && ${SUDO} apt-get install -yqq lsb-release
echo "UBUNTU_CODENAME=$(lsb_release -sc)" >> $GITHUB_ENV
echo "UBUNTU_VERSION=$(lsb_release -sr)" >> $GITHUB_ENV
- name: Fix GitHub's mess (ubuntu-20.04)
if: ${{ runner.os == 'Linux' && env.UBUNTU_VERSION == '20.04' }}
shell: bash
run: |
${SUDO} rm /etc/apt/sources.list.d/*.list
${SUDO} apt-get update -qq
${SUDO} apt-get purge -yqq git-man libclang* libgbm* libllvm* libmono* libnginx* moby* mono* nginx* perl php* libgdiplus libpcre2-posix3 libselinux1-dev libzip4
${SUDO} apt-get install -yqq --allow-downgrades autoconf/focal automake/focal build-essential/focal git/focal libgd3/focal libglib2.0-0/focal libglib2.0-dev/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal pkg-config/focal
${SUDO} apt-get clean
- name: Fix GitHub's mess (ubuntu-22.04)
if: ${{ runner.os == 'Linux' && env.UBUNTU_VERSION == '22.04' }}
shell: bash
run: |
${SUDO} rm /etc/apt/sources.list.d/*.list
${SUDO} apt-get update -qq
${SUDO} apt-get purge -yqq git-man libclang* libgbm* libllvm* libmono* libnginx* moby* mono* msbuild* nginx* perl php* libgdiplus libpcre2-posix3 libselinux1-dev libzip4
${SUDO} apt-get install -y --allow-downgrades git/jammy libatomic1/jammy libc6/jammy libgcc-s1/jammy libglvnd0/jammy libstdc++6/jammy
${SUDO} apt-get clean
- name: Fix GitHub's mess (ubuntu-24.04)
if: ${{ runner.os == 'Linux' && env.UBUNTU_VERSION == '24.04' }}
shell: bash
run: |
${SUDO} rm /etc/apt/sources.list.d/azure-cli.sources /etc/apt/sources.list.d/microsoft-prod.list
${SUDO} sed -i 's|Types: deb|Types: deb\nArchitectures: amd64 i386|g' /etc/apt/sources.list.d/ubuntu.sources
${SUDO} apt-get update -qq
${SUDO} apt-get purge -yqq git-man libclang* libgbm* libllvm* libmono* libnginx* moby* mono* nginx* perl php* libgdiplus libpcre2-posix3 libselinux1-dev libzip4
${SUDO} apt-get install -y --allow-downgrades libatomic1/noble libc6/noble libgcc-s1/noble libstdc++6/noble
${SUDO} apt-get clean
# setup build options
- name: Setup build options
shell: bash
run: |
# pawpaw debug
PAWPAW_DEBUG=0
[[ "${{ inputs.debug }}" = "true" ]] && PAWPAW_DEBUG=1
echo "PAWPAW_DEBUG=${PAWPAW_DEBUG}" >> $GITHUB_ENV
# pawpaw lto
PAWPAW_SKIP_LTO=1
[[ "${{ inputs.lto }}" = "true" ]] && PAWPAW_SKIP_LTO=0
echo "PAWPAW_SKIP_LTO=${PAWPAW_SKIP_LTO}" >> $GITHUB_ENV
# pawpaw target
PAWPAW_TARGET="${{ inputs.target }}"
[[ "${PAWPAW_TARGET}" = "linux" || "${PAWPAW_TARGET}" = "pluginval" || "${PAWPAW_TARGET}" = "plugin-validation" ]] && PAWPAW_TARGET=linux-x86_64
[[ "${PAWPAW_TARGET}" = "macos" ]] && PAWPAW_TARGET=macos-universal
[[ "${PAWPAW_TARGET}" = "macos-intel" ]] && PAWPAW_TARGET=macos
echo "PAWPAW_TARGET=${PAWPAW_TARGET}" >> $GITHUB_ENV
# cmake extra args
CMAKE_EXTRA_ARGS=""
[[ "${{ inputs.debug }}" = "true" ]] && CMAKE_EXTRA_ARGS+=" -DCMAKE_BUILD_TYPE=Debug" || CMAKE_EXTRA_ARGS+=" -DCMAKE_BUILD_TYPE=Release"
[[ "${{ inputs.lto }}" = "true" ]] && CMAKE_EXTRA_ARGS+=" -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON" || CMAKE_EXTRA_ARGS+=" -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF"
echo "CMAKE_EXTRA_ARGS=${CMAKE_EXTRA_ARGS} ${{ inputs.extraargs }}" >> $GITHUB_ENV
# setup build cache
- name: Setup build cache
if: ${{ inputs.pawpaw == 'true' }}
uses: actions/cache@v4
with:
path: ~/PawPawBuilds
key: pawpaw-${{ inputs.target }}-v${{ env.PAWPAW_CACHE_VERSION }}-${{ inputs.lto }}
# setup dependencies
- name: Setup dependencies (linux-arm64)
if: ${{ inputs.target == 'linux-arm64' }}
shell: bash
run: |
${SUDO} dpkg --add-architecture arm64
${SUDO} sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list
${SUDO} sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }} main restricted universe multiverse" | ${SUDO} tee /etc/apt/sources.list.d/ports-arm64.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }}-updates main restricted universe multiverse" | ${SUDO} tee -a /etc/apt/sources.list.d/ports-arm64.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }}-backports main restricted universe multiverse" | ${SUDO} tee -a /etc/apt/sources.list.d/ports-arm64.list
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq --allow-downgrades g++-aarch64-linux-gnu libasound2-dev:arm64 libdbus-1-dev:arm64 libgl1-mesa-dev:arm64 libglib2.0-dev:arm64 liblo-dev:arm64 libx11-dev:arm64 libxcursor-dev:arm64 libxext-dev:arm64 libxrandr-dev:arm64 gperf qemu-user-static
${SUDO} apt-get clean
- name: Setup dependencies (linux-armhf)
if: ${{ inputs.target == 'linux-armhf' }}
shell: bash
run: |
${SUDO} dpkg --add-architecture armhf
${SUDO} sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list
${SUDO} sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list
echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }} main restricted universe multiverse" | ${SUDO} tee /etc/apt/sources.list.d/ports-armhf.list
echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }}-updates main restricted universe multiverse" | ${SUDO} tee -a /etc/apt/sources.list.d/ports-armhf.list
echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }}-backports main restricted universe multiverse" | ${SUDO} tee -a /etc/apt/sources.list.d/ports-armhf.list
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq --allow-downgrades g++-arm-linux-gnueabihf libasound2-dev:armhf libdbus-1-dev:armhf libgl1-mesa-dev:armhf libglib2.0-dev:armhf liblo-dev:armhf libx11-dev:armhf libxcursor-dev:armhf libxext-dev:armhf libxrandr-dev:armhf gperf qemu-user-static
${SUDO} apt-get clean
- name: Setup dependencies (linux-i686)
if: ${{ inputs.target == 'linux-i386' || inputs.target == 'linux-i686' }}
shell: bash
run: |
${SUDO} dpkg --add-architecture i386
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq --allow-downgrades g++-i686-linux-gnu libasound2-dev:i386 libdbus-1-dev:i386 libgl1-mesa-dev:i386 libglib2.0-dev:i386 liblo-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxrandr-dev:i386 gperf
${SUDO} apt-get clean
- name: Setup dependencies (linux-riscv64)
if: ${{ inputs.target == 'linux-riscv64' }}
shell: bash
run: |
${SUDO} dpkg --add-architecture riscv64
${SUDO} sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list
${SUDO} sed -i "s/deb mirror/deb [arch=amd64] mirror/" /etc/apt/sources.list
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }} main restricted universe multiverse" | ${SUDO} tee /etc/apt/sources.list.d/ports-riscv64.list
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }}-updates main restricted universe multiverse" | ${SUDO} tee -a /etc/apt/sources.list.d/ports-riscv64.list
echo "deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports ${{ env.UBUNTU_CODENAME }}-backports main restricted universe multiverse" | ${SUDO} tee -a /etc/apt/sources.list.d/ports-riscv64.list
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq --allow-downgrades g++-riscv64-linux-gnu libasound2-dev:riscv64 libdbus-1-dev:riscv64 libgl1-mesa-dev:riscv64 libglapi-mesa:riscv64 libglib2.0-dev:riscv64 liblo-dev:riscv64 libx11-dev:riscv64 libxcursor-dev:riscv64 libxext-dev:riscv64 libxrandr-dev:riscv64 gperf qemu-user-static
${SUDO} apt-get clean
- name: Setup dependencies (linux-x86_64)
if: ${{ inputs.target == 'linux-x86_64' || inputs.target == 'linux' }}
shell: bash
run: |
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq libasound2-dev libdbus-1-dev libgl1-mesa-dev libglib2.0-dev liblo-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev gperf
${SUDO} apt-get clean
- name: Setup dependencies (macOS)
if: ${{ startsWith(inputs.target, 'macos') }}
shell: bash
run: |
brew uninstall --ignore-dependencies cairo
- name: Setup dependencies (win32)
if: ${{ inputs.target == 'win32' }}
shell: bash
run: |
${SUDO} dpkg --add-architecture i386
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq --allow-downgrades binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 gperf wine-stable:i386 xvfb
${SUDO} apt-get clean
- name: Setup dependencies (win64)
if: ${{ inputs.target == 'win64' }}
shell: bash
run: |
${SUDO} dpkg --add-architecture i386
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq --allow-downgrades binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 gperf wine-stable xvfb
${SUDO} apt-get clean
- name: Setup dependencies (pluginval)
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
# custom repos
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_11.1.0_all.deb
${SUDO} dpkg -i kxstudio-repos_11.1.0_all.deb
${SUDO} apt-get update -qq
# build-deps
${SUDO} apt-get install -yqq libasound2-dev libdbus-1-dev libgl1-mesa-dev libglib2.0-dev liblo-dev libpulse-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev gperf
# runtime testing
${SUDO} apt-get install -yqq carla-git ladspa-sdk lilv-utils lv2-dev lv2lint kxstudio-lv2-extensions mod-lv2-extensions valgrind xvfb
# cleanup
${SUDO} apt-get clean
# install faust (optional)
- name: Cache faust debs
if: ${{ inputs.faust == 'true' && runner.os == 'Linux' }}
uses: actions/cache@v4
with:
path: ~/faustdebs
key: faustdebs
- name: Install faust (non-macOS)
if: ${{ inputs.faust == 'true' && runner.os == 'Linux' }}
shell: bash
run: |
${SUDO} apt-get update -qq
${SUDO} apt-get install -yqq libllvm10 libmicrohttpd12 libsndfile1
mkdir -p ~/faustdebs
wget -c -P ~/faustdebs \
https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/faust_2.41.1~ds0-0_amd64.deb \
https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/faust-common_2.41.1~ds0-0_all.deb \
https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/libfaust2_2.41.1~ds0-0_amd64.deb
${SUDO} dpkg -i ~/faustdebs/*.deb
- name: Install faust (macOS)
if: ${{ inputs.faust == 'true' && startsWith(inputs.target, 'macos') }}
shell: bash
run: |
brew install faust
# install hvcc (optional)
- name: Install hvcc
if: ${{ inputs.hvcc == 'true' }}
shell: bash
run: |
python3 -m pip install --no-input \
git+https://github.com/Wasted-Audio/hvcc.git#${{ env.HVCC_COMMIT_HASH }}
# build dependencies
- name: Build dependencies through PawPaw
if: ${{ inputs.pawpaw == 'true' }}
shell: bash
run: |
git clone https://github.com/DISTRHO/PawPaw.git
git -C PawPaw checkout ${{ env.PAWPAW_COMMIT_HASH }}
./PawPaw/.github/workflows/bootstrap-deps.sh ${{ env.PAWPAW_TARGET }}
./PawPaw/bootstrap-plugins.sh ${{ env.PAWPAW_TARGET }}
./PawPaw/.cleanup.sh ${{ env.PAWPAW_TARGET }}
# build plugins
- name: Build linux arm64 cross-compiled
if: ${{ inputs.target == 'linux-arm64' }}
shell: bash
env:
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
LDFLAGS: -static-libgcc -static-libstdc++
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
-DCMAKE_AR=/usr/bin/aarch64-linux-gnu-ar \
-DCMAKE_C_COMPILER_AR=/usr/bin/aarch64-linux-gnu-ar \
-DCMAKE_CXX_COMPILER_AR=/usr/bin/aarch64-linux-gnu-ar \
-DCMAKE_RANLIB=/usr/bin/aarch64-linux-gnu-ranlib \
-DCMAKE_C_COMPILER_RANLIB=/usr/bin/aarch64-linux-gnu-ranlib \
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/aarch64-linux-gnu-ranlib \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DDPF_VST3_ARCHITECTURE=aarch64 .
make -j $(nproc)
- name: Build linux armhf cross-compiled
if: ${{ inputs.target == 'linux-armhf' }}
shell: bash
env:
CC: arm-linux-gnueabihf-gcc
CXX: arm-linux-gnueabihf-g++
LDFLAGS: -static-libgcc -static-libstdc++
PKG_CONFIG_PATH: /usr/lib/arm-linux-gnueabihf/pkgconfig
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=armv7 \
-DCMAKE_AR=/usr/bin/arm-linux-gnueabihf-ar \
-DCMAKE_C_COMPILER_AR=/usr/bin/arm-linux-gnueabihf-ar \
-DCMAKE_CXX_COMPILER_AR=/usr/bin/arm-linux-gnueabihf-ar \
-DCMAKE_RANLIB=/usr/bin/arm-linux-gnueabihf-ranlib \
-DCMAKE_C_COMPILER_RANLIB=/usr/bin/arm-linux-gnueabihf-ranlib \
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/arm-linux-gnueabihf-ranlib \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DDPF_VST3_ARCHITECTURE=armv7a .
make -j $(nproc)
- name: Build linux i686
if: ${{ inputs.target == 'linux-i386' || inputs.target == 'linux-i686' }}
shell: bash
env:
CC: i686-linux-gnu-gcc
CXX: i686-linux-gnu-g++
CFLAGS: -m32
CXXFLAGS: -m32
LDFLAGS: -m32 -static-libgcc -static-libstdc++
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=i386 \
-DCMAKE_AR=/usr/bin/i686-linux-gnu-ar \
-DCMAKE_C_COMPILER_AR=/usr/bin/i686-linux-gnu-ar \
-DCMAKE_CXX_COMPILER_AR=/usr/bin/i686-linux-gnu-ar \
-DCMAKE_RANLIB=/usr/bin/i686-linux-gnu-ranlib \
-DCMAKE_C_COMPILER_RANLIB=/usr/bin/i686-linux-gnu-ranlib \
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/i686-linux-gnu-ranlib \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DDPF_VST3_ARCHITECTURE=i386 .
make -j $(nproc)
- name: Build linux riscv64 cross-compiled
if: ${{ inputs.target == 'linux-riscv64' }}
shell: bash
env:
CC: riscv64-linux-gnu-gcc
CXX: riscv64-linux-gnu-g++
LDFLAGS: -static-libgcc -static-libstdc++
PKG_CONFIG_PATH: /usr/lib/riscv64-linux-gnu/pkgconfig
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
-DCMAKE_AR=/usr/bin/riscv64-linux-gnu-ar \
-DCMAKE_C_COMPILER_AR=/usr/bin/riscv64-linux-gnu-ar \
-DCMAKE_CXX_COMPILER_AR=/usr/bin/riscv64-linux-gnu-ar \
-DCMAKE_RANLIB=/usr/bin/riscv64-linux-gnu-ranlib \
-DCMAKE_C_COMPILER_RANLIB=/usr/bin/riscv64-linux-gnu-ranlib \
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/riscv64-linux-gnu-ranlib \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DDPF_VST3_ARCHITECTURE=riscv64 .
make -j $(nproc)
- name: Build linux x86_64
if: ${{ inputs.target == 'linux-x86_64' || inputs.target == 'linux' }}
shell: bash
env:
LDFLAGS: -static-libgcc -static-libstdc++
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
.
make -j $(nproc)
- name: Build macOS intel
if: ${{ inputs.target == 'macos-intel' }}
shell: bash
env:
CFLAGS: -arch x86_64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_8 -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_8 -mmacosx-version-min=10.8 -stdlib=libc++
CXXFLAGS: -arch x86_64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_8 -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_8 -mmacosx-version-min=10.8 -stdlib=libc++
LDFLAGS: -arch x86_64 -mmacosx-version-min=10.8 -stdlib=libc++
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_OSX_ARCHITECTURES='x86_64' \
-DCMAKE_OSX_DEPLOYMENT_TARGET='10.8' \
-DCMAKE_OSX_SYSROOT="macosx" .
make -j $(sysctl -n hw.logicalcpu)
${{ inputs.dpf_path }}/utils/package-osx-bundles.sh
- name: Build macOS universal
if: ${{ inputs.target == 'macos' || inputs.target == 'macos-universal' }}
shell: bash
env:
CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_OSX_ARCHITECTURES='arm64;x86_64' \
-DCMAKE_OSX_DEPLOYMENT_TARGET='10.12' \
-DCMAKE_OSX_SYSROOT="macosx" .
make -j $(sysctl -n hw.logicalcpu)
${{ inputs.dpf_path }}/utils/package-osx-bundles.sh
- name: Build macOS universal (10.15)
if: ${{ inputs.target == 'macos-10.15' || inputs.target == 'macos-universal-10.15' }}
shell: bash
env:
CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_15 -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_15 -mmacosx-version-min=10.15 -mtune=generic -msse -msse2
CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_15 -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_15 -mmacosx-version-min=10.15 -mtune=generic -msse -msse2
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.15
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_OSX_ARCHITECTURES='arm64;x86_64' \
-DCMAKE_OSX_DEPLOYMENT_TARGET='10.15' \
-DCMAKE_OSX_SYSROOT="macosx" .
make -j $(sysctl -n hw.logicalcpu)
${{ inputs.dpf_path }}/utils/package-osx-bundles.sh
- name: Build win32 cross-compiled
if: ${{ inputs.target == 'win32' }}
shell: bash
env:
AR: i686-w64-mingw32-ar
CC: i686-w64-mingw32-gcc
CXX: i686-w64-mingw32-g++
EXE_WRAPPER: wine
PKG_CONFIG: "false"
WINEDEBUG: "-all"
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_CROSSCOMPILING_EMULATOR=wine \
-DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_SYSTEM_PROCESSOR=i686 \
-DCMAKE_AR=/usr/bin/i686-w64-mingw32-ar \
-DCMAKE_C_COMPILER_AR=/usr/bin/i686-w64-mingw32-ar \
-DCMAKE_CXX_COMPILER_AR=/usr/bin/i686-w64-mingw32-ar \
-DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib \
-DCMAKE_C_COMPILER_RANLIB=/usr/bin/i686-w64-mingw32-ranlib \
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/i686-w64-mingw32-ranlib \
-DCMAKE_RC_COMPILER=/usr/bin/i686-w64-mingw32-windres \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DDPF_VST3_ARCHITECTURE=x86 .
make -j $(nproc)
- name: Build win64 cross-compiled
if: ${{ inputs.target == 'win64' }}
shell: bash
env:
AR: x86_64-w64-mingw32-ar
CC: x86_64-w64-mingw32-gcc
CXX: x86_64-w64-mingw32-g++
EXE_WRAPPER: wine
PKG_CONFIG: "false"
WINEDEBUG: "-all"
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_CROSSCOMPILING_EMULATOR=wine \
-DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_SYSTEM_PROCESSOR=x86_64 \
-DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar \
-DCMAKE_C_COMPILER_AR=/usr/bin/x86_64-w64-mingw32-ar \
-DCMAKE_CXX_COMPILER_AR=/usr/bin/x86_64-w64-mingw32-ar \
-DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib \
-DCMAKE_C_COMPILER_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib \
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib \
-DCMAKE_RC_COMPILER=/usr/bin/x86_64-w64-mingw32-windres \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DDPF_VST3_ARCHITECTURE=x86_64 .
make -j $(nproc)
- name: Build plugins
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
env:
CFLAGS: -g
CXXFLAGS: -g -DDPF_ABORT_ON_ERROR -DDPF_RUNTIME_TESTING -Wno-pmf-conversions
LDFLAGS: -static-libgcc -static-libstdc++
PAWPAW_SKIP_STRIPPING: 1
run: |
${{ inputs.pawpaw == 'true' }} && pushd PawPaw && source local.env ${{ env.PAWPAW_TARGET }} && popd
cmake ${{ env.CMAKE_EXTRA_ARGS }} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
.
make -j $(nproc)
# pluginval
- name: Validate LV2 ttl syntax
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
lv2_validate \
/usr/lib/lv2/kx-meta/*.ttl \
/usr/lib/lv2/kx-control-input-port-change-request.lv2/*.ttl \
/usr/lib/lv2/kx-programs.lv2/*.ttl \
/usr/lib/lv2/kx-properties.lv2/*.ttl \
/usr/lib/lv2/mod.lv2/*.ttl \
/usr/lib/lv2/modgui.lv2/*.ttl \
./bin/*.lv2/*.ttl
- name: Validate LV2 metadata and binaries
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
export LV2_PATH=/tmp/lv2-path
mkdir ${LV2_PATH}
mv bin/*.lv2 ${LV2_PATH}/
cp -r /usr/lib/lv2/{atom,buf-size,core,data-access,kx-control-input-port-change-request,kx-programs,kx-properties,mod,modgui,instance-access,midi,parameters,port-groups,port-props,options,patch,presets,resize-port,state,time,ui,units,urid,worker}.lv2 ${LV2_PATH}/
lv2lint -s lv2_generate_ttl -l ld-linux-x86-64.so.2 -M nopack $(lv2ls)
- name: Test LADSPA plugins
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
for p in $(ls bin/ | grep ladspa.so); do \
env CARLA_BRIDGE_DUMMY=1 CARLA_BRIDGE_TESTING=native \
valgrind \
--error-exitcode=255 \
--leak-check=full \
--track-origins=yes \
--keep-debuginfo=yes \
--suppressions=${{ inputs.dpf_path }}/utils/valgrind-dpf.supp \
/usr/lib/carla/carla-bridge-native ladspa ./bin/${p} "" 1>/dev/null; \
valgrind \
--error-exitcode=255 \
--leak-check=full \
--track-origins=yes \
--keep-debuginfo=yes \
--suppressions=${{ inputs.dpf_path }}/utils/valgrind-dpf.supp \
/usr/bin/analyseplugin ./bin/${p}; \
done
- name: Test DSSI plugins
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
for p in $(ls bin/ | grep dssi.so); do \
env CARLA_BRIDGE_DUMMY=1 CARLA_BRIDGE_TESTING=native \
valgrind \
--error-exitcode=255 \
--leak-check=full \
--track-origins=yes \
--keep-debuginfo=yes \
--suppressions=${{ inputs.dpf_path }}/utils/valgrind-dpf.supp \
/usr/lib/carla/carla-bridge-native dssi ./bin/${p} "" 1>/dev/null; \
done
- name: Test LV2 plugins
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
export LV2_PATH=/tmp/lv2-path
for p in $(lv2ls); do \
env CARLA_BRIDGE_DUMMY=1 CARLA_BRIDGE_TESTING=native \
valgrind \
--error-exitcode=255 \
--leak-check=full \
--track-origins=yes \
--keep-debuginfo=yes \
--suppressions=${{ inputs.dpf_path }}/utils/valgrind-dpf.supp \
/usr/lib/carla/carla-bridge-native lv2 "" ${p} 1>/dev/null; \
done
- name: Test VST2 plugins
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
for p in $(find bin/ | grep -e vst.so -e '.*\.vst/.*\.so'); do \
env CARLA_BRIDGE_DUMMY=1 CARLA_BRIDGE_TESTING=native \
valgrind \
--error-exitcode=255 \
--leak-check=full \
--track-origins=yes \
--keep-debuginfo=yes \
--suppressions=${{ inputs.dpf_path }}/utils/valgrind-dpf.supp \
/usr/lib/carla/carla-bridge-native vst2 ./${p} "" 1>/dev/null; \
done
- name: Test VST3 plugins
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
for p in $(ls bin/ | grep vst3); do \
env CARLA_BRIDGE_DUMMY=1 CARLA_BRIDGE_TESTING=native \
valgrind \
--error-exitcode=255 \
--leak-check=full \
--track-origins=yes \
--keep-debuginfo=yes \
--suppressions=${{ inputs.dpf_path }}/utils/valgrind-dpf.supp \
/usr/lib/carla/carla-bridge-native vst3 ./bin/${p} "" 1>/dev/null; \
done
- name: Test CLAP plugins
if: ${{ inputs.target == 'pluginval' || inputs.target == 'plugin-validation' }}
shell: bash
run: |
for p in $(find bin/ -type f | grep '.*\.clap$'); do \
env CARLA_BRIDGE_DUMMY=1 CARLA_BRIDGE_TESTING=native \
valgrind \
--error-exitcode=255 \
--leak-check=full \
--track-origins=yes \
--keep-debuginfo=yes \
--suppressions=${{ inputs.dpf_path }}/utils/valgrind-dpf.supp \
/usr/lib/carla/carla-bridge-native clap ./${p} "" 1>/dev/null; \
done
# upload artifacts (properties)
- name: Set sha8
shell: bash
run: |
echo "SHA8=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- name: Set basenames
shell: bash
run: |
[[ "${{ inputs.debug }}" = "true" ]] && TARGET_SUFFIX="-debug"
echo "ARTIFACT_BASENAME=${{ github.event.repository.name }}-${{ inputs.target }}${TARGET_SUFFIX}-${{ github.event.pull_request.number || env.SHA8 }}${{ inputs.suffix }}" >> $GITHUB_ENV
echo "RELEASE_BASENAME=${{ github.event.repository.name }}-$(echo ${{ github.ref_name }} | sed 's|/|-|g')${{ inputs.suffix }}" >> $GITHUB_ENV
# create release archive (macOS exception)
- name: Create release archive (macOS non-release)
if: ${{ startsWith(inputs.target, 'macos') }}
shell: bash
run: |
if [ "$(ls bin | grep '.app$' | wc -l)" -ge 1 ]; then
mkdir macos-pkg
mv bin/*.app macos-pkg/
mv *-macOS.pkg macos-pkg/${{ github.event.repository.name }}-AudioPlugins.pkg
hdiutil create ${{ env.ARTIFACT_BASENAME }}.dmg -srcfolder macos-pkg -volname ${{ env.ARTIFACT_BASENAME }} -fs HFS+ -ov
else
cp *-macOS.pkg ${{ env.ARTIFACT_BASENAME }}.pkg
fi
# upload artifacts (action)
- name: Upload artifacts (Linux)
if: ${{ startsWith(inputs.target, 'linux') }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_BASENAME }}
path: |
bin/*
- name: Upload artifacts (macOS)
if: ${{ startsWith(inputs.target, 'macos') }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_BASENAME }}
path: |
${{ env.ARTIFACT_BASENAME }}.*
- name: Upload artifacts (Windows)
if: ${{ startsWith(inputs.target, 'win') }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_BASENAME }}
path: |
bin/*
!bin/*-ladspa.dll
!bin/*-dssi*
# create release archive
- name: Create release archive (Linux)
if: ${{ startsWith(inputs.target, 'linux') && startsWith(github.ref, 'refs/tags/') && inputs.release == 'true' && inputs.debug == 'false' }}
shell: bash
run: |
tar chJf ${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.tar.xz \
--transform="s,^bin/,${{ env.RELEASE_BASENAME }}/," \
bin/*
echo RELEASE_FILENAME=${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.tar.xz >> $GITHUB_ENV
- name: Create release archive (macOS)
if: ${{ startsWith(inputs.target, 'macos') && startsWith(github.ref, 'refs/tags/') && inputs.release == 'true' && inputs.debug == 'false' }}
shell: bash
run: |
if [ -e ${{ env.ARTIFACT_BASENAME }}.dmg ]; then
mv ${{ env.ARTIFACT_BASENAME }}.dmg ${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.dmg
echo RELEASE_FILENAME=${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.dmg >> $GITHUB_ENV
else
mv ${{ env.ARTIFACT_BASENAME }}.pkg ${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.pkg
echo RELEASE_FILENAME=${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.pkg >> $GITHUB_ENV
fi
- name: Create release archive (Windows)
if: ${{ startsWith(inputs.target, 'win') && startsWith(github.ref, 'refs/tags/') && inputs.release == 'true' && inputs.debug == 'false' }}
shell: bash
run: |
mv bin ${{ env.RELEASE_BASENAME }}
zip -r -9 ${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.zip \
${{ env.RELEASE_BASENAME }}/* \
-x ${{ env.RELEASE_BASENAME }}/*-ladspa.dll \
-x ${{ env.RELEASE_BASENAME }}/*-dssi.dll
echo RELEASE_FILENAME=${{ env.RELEASE_BASENAME }}-${{ inputs.target }}.zip >> $GITHUB_ENV
- name: Create release archive (Source)
if: ${{ startsWith(inputs.target, 'source') }}
shell: bash
run: |
tar chJf ../${{ env.RELEASE_BASENAME }}-src.tar.xz \
--exclude=".git*" \
--transform='s,^\.\.,-.-.,' \
--transform='s,^\.,${{ env.RELEASE_BASENAME }},' \
--transform='s,^-\.-\.,..,' \
.
mv ../${{ env.RELEASE_BASENAME }}-src.tar.xz .
echo RELEASE_FILENAME=${{ env.RELEASE_BASENAME }}-src.tar.xz >> $GITHUB_ENV
# upload release archive
- uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') && inputs.release == 'true' && inputs.debug == 'false' }}
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ env.RELEASE_FILENAME }}