13
13
14
14
jobs :
15
15
linux-arm64 :
16
- runs-on : ubuntu-18 .04
16
+ runs-on : ubuntu-20 .04
17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
with :
20
20
submodules : recursive
21
+ - name : Fix GitHub's mess
22
+ run : |
23
+ sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
24
+ sudo apt-get update -qq
25
+ sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
21
26
- name : Set up dependencies
22
27
run : |
23
28
sudo dpkg --add-architecture arm64
24
29
sudo sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list
25
- echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ports-arm64.list
26
- echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-arm64.list
27
- echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-arm64.list
30
+ echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ports-arm64.list
31
+ echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-arm64.list
32
+ echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-arm64.list
28
33
sudo apt-get update -qq
29
- sudo apt-get install -yq g++-aarch64-linux-gnu libasound2-dev:arm64 libcairo2-dev:arm64 libgl1-mesa-dev:arm64 liblo-dev:arm64 libpulse-dev:arm64 libx11-dev:arm64 libxcursor-dev:arm64 libxext-dev:arm64 libxrandr-dev:arm64 qemu-user-static
30
- # fix broken Ubuntu packages missing pkg-config file in multi-arch package
31
- sudo apt-get install -yq libasound2-dev libgl1-mesa-dev liblo-dev libpulse-dev libxcursor-dev libxrandr-dev
32
- sudo ln -s /usr/lib/aarch64-linux-gnu/liblo.so.7 /usr/lib/aarch64-linux-gnu/liblo.so
33
- sudo cp /usr/lib/x86_64-linux-gnu/pkgconfig/liblo.pc /usr/lib/aarch64-linux-gnu/pkgconfig/liblo.pc
34
- sudo sed -i "s/x86_64-linux-gnu/aarch64-linux-gnu/" /usr/lib/aarch64-linux-gnu/pkgconfig/liblo.pc
34
+ sudo apt-get install -yqq g++-aarch64-linux-gnu libasound2-dev:arm64 libcairo2-dev:arm64 libdbus-1-dev:arm64 libgl1-mesa-dev:arm64 liblo-dev:arm64 libpulse-dev:arm64 libx11-dev:arm64 libxcursor-dev:arm64 libxext-dev:arm64 libxrandr-dev:arm64 qemu-user-static
35
35
- name : Build linux arm64 cross-compiled
36
36
env :
37
37
CC : aarch64-linux-gnu-gcc
38
38
CXX : aarch64-linux-gnu-g++
39
39
LDFLAGS : -static-libgcc -static-libstdc++
40
+ PKG_CONFIG_PATH : /usr/lib/aarch64-linux-gnu/pkgconfig
40
41
run : |
41
42
make features
42
- make -j $(nproc)
43
+ make WITH_LTO=true -j $(nproc)
43
44
- name : Set sha8
44
45
id : slug
45
46
run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
@@ -50,33 +51,34 @@ jobs:
50
51
bin/*
51
52
52
53
linux-armhf :
53
- runs-on : ubuntu-18 .04
54
+ runs-on : ubuntu-20 .04
54
55
steps :
55
56
- uses : actions/checkout@v2
56
57
with :
57
58
submodules : recursive
59
+ - name : Fix GitHub's mess
60
+ run : |
61
+ sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
62
+ sudo apt-get update -qq
63
+ sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
58
64
- name : Set up dependencies
59
65
run : |
60
66
sudo dpkg --add-architecture armhf
61
67
sudo sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list
62
- echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ports-armhf.list
63
- echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-armhf.list
64
- echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-armhf.list
68
+ echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ports-armhf.list
69
+ echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports focal -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-armhf.list
70
+ echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports focal -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-armhf.list
65
71
sudo apt-get update -qq
66
- sudo apt-get install -yq g++-arm-linux-gnueabihf libasound2-dev:armhf libcairo2-dev:armhf libgl1-mesa-dev:armhf liblo-dev:armhf libpulse-dev:armhf libx11-dev:armhf libxcursor-dev:armhf libxext-dev:armhf libxrandr-dev:armhf qemu-user-static
67
- # fix broken Ubuntu packages missing pkg-config file in multi-arch package
68
- sudo apt-get install -yq libasound2-dev libgl1-mesa-dev liblo-dev libpulse-dev libxcursor-dev libxrandr-dev
69
- sudo ln -s /usr/lib/arm-linux-gnueabihf/liblo.so.7 /usr/lib/arm-linux-gnueabihf/liblo.so
70
- sudo cp /usr/lib/x86_64-linux-gnu/pkgconfig/liblo.pc /usr/lib/arm-linux-gnueabihf/pkgconfig/liblo.pc
71
- sudo sed -i "s/x86_64-linux-gnu/arm-linux-gnueabihf/" /usr/lib/arm-linux-gnueabihf/pkgconfig/liblo.pc
72
+ sudo apt-get install -yqq g++-arm-linux-gnueabihf libasound2-dev:armhf libcairo2-dev:armhf libdbus-1-dev:armhf libgl1-mesa-dev:armhf liblo-dev:armhf libpulse-dev:armhf libx11-dev:armhf libxcursor-dev:armhf libxext-dev:armhf libxrandr-dev:armhf qemu-user-static
72
73
- name : Build linux armhf cross-compiled
73
74
env :
74
75
CC : arm-linux-gnueabihf-gcc
75
76
CXX : arm-linux-gnueabihf-g++
76
77
LDFLAGS : -static-libgcc -static-libstdc++
78
+ PKG_CONFIG_PATH : /usr/lib/arm-linux-gnueabihf/pkgconfig
77
79
run : |
78
80
make features
79
- make -j $(nproc)
81
+ make WITH_LTO=true -j $(nproc)
80
82
- name : Set sha8
81
83
id : slug
82
84
run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
@@ -86,51 +88,58 @@ jobs:
86
88
path : |
87
89
bin/*
88
90
89
- linux-x86 :
90
- runs-on : ubuntu-18 .04
91
+ linux-i686 :
92
+ runs-on : ubuntu-20 .04
91
93
steps :
92
94
- uses : actions/checkout@v2
93
95
with :
94
96
submodules : recursive
97
+ - name : Fix GitHub's mess
98
+ run : |
99
+ sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
100
+ sudo apt-get update -qq
101
+ sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
95
102
- name : Set up dependencies
96
103
run : |
97
104
sudo dpkg --add-architecture i386
98
105
sudo apt-get update -qq
99
- sudo apt-get install -yq g++-multilib libasound2-dev:i386 libcairo2-dev:i386 libgl1-mesa-dev:i386 liblo-dev:i386 libpulse-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxrandr-dev:i386
100
- - name : Build linux x86
106
+ sudo apt-get install -yqq g++-i686-linux-gnu libasound2-dev:i386 libcairo2-dev:i386 libdbus-1 -dev:i386 libgl1-mesa-dev:i386 liblo-dev:i386 libpulse-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxrandr-dev:i386
107
+ - name : Build linux i686
101
108
env :
109
+ CC : i686-linux-gnu-gcc
110
+ CXX : i686-linux-gnu-g++
102
111
CFLAGS : -m32
103
112
CXXFLAGS : -m32
104
113
LDFLAGS : -m32 -static-libgcc -static-libstdc++
105
114
PKG_CONFIG_PATH : /usr/lib/i386-linux-gnu/pkgconfig
106
115
run : |
107
116
make features
108
- make -j $(nproc)
117
+ make WITH_LTO=true -j $(nproc)
109
118
- name : Set sha8
110
119
id : slug
111
120
run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
112
121
- uses : actions/upload-artifact@v2
113
122
with :
114
- name : ${{ github.event.repository.name }}-linux-x86 -${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
123
+ name : ${{ github.event.repository.name }}-linux-i686 -${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
115
124
path : |
116
125
bin/*
117
126
118
127
linux-x86_64 :
119
- runs-on : ubuntu-18 .04
128
+ runs-on : ubuntu-20 .04
120
129
steps :
121
130
- uses : actions/checkout@v2
122
131
with :
123
132
submodules : recursive
124
133
- name : Set up dependencies
125
134
run : |
126
135
sudo apt-get update -qq
127
- sudo apt-get install -yq libasound2-dev libcairo2-dev libgl1-mesa-dev liblo-dev libpulse-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev
136
+ sudo apt-get install -yqq libasound2-dev libcairo2-dev libdbus-1 -dev libgl1-mesa-dev liblo-dev libpulse-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev
128
137
- name : Build linux x86_64
129
138
env :
130
139
LDFLAGS : -static-libgcc -static-libstdc++
131
140
run : |
132
141
make features
133
- make -j $(nproc)
142
+ make WITH_LTO=true -j $(nproc)
134
143
- name : Set sha8
135
144
id : slug
136
145
run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
@@ -157,7 +166,7 @@ jobs:
157
166
LDFLAGS : -arch x86_64 -arch arm64 -mmacosx-version-min=10.12
158
167
run : |
159
168
make features
160
- make NOOPT=true -j $(sysctl -n hw.logicalcpu)
169
+ make NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu)
161
170
./dpf/utils/package-osx-bundles.sh
162
171
- name : Set sha8
163
172
id : slug
@@ -180,11 +189,16 @@ jobs:
180
189
- uses : actions/checkout@v2
181
190
with :
182
191
submodules : recursive
192
+ - name : Fix GitHub's mess
193
+ run : |
194
+ sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
195
+ sudo apt-get update -qq
196
+ sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
183
197
- name : Set up dependencies
184
198
run : |
185
199
sudo dpkg --add-architecture i386
186
200
sudo apt-get update -qq
187
- sudo apt-get install -yq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable:i386
201
+ sudo apt-get install -yqq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable:i386
188
202
- name : Build win32 cross-compiled
189
203
env :
190
204
CC : i686-w64-mingw32-gcc
@@ -194,7 +208,7 @@ jobs:
194
208
WINEDEBUG : " -all"
195
209
run : |
196
210
make features
197
- make -j $(nproc)
211
+ make WITH_LTO=true -j $(nproc)
198
212
- name : Set sha8
199
213
id : slug
200
214
run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
@@ -215,7 +229,7 @@ jobs:
215
229
- name : Set up dependencies
216
230
run : |
217
231
sudo apt-get update -qq
218
- sudo apt-get install -yq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
232
+ sudo apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
219
233
- name : Build win64 cross-compiled
220
234
env :
221
235
CC : x86_64-w64-mingw32-gcc
@@ -225,7 +239,7 @@ jobs:
225
239
WINEDEBUG : " -all"
226
240
run : |
227
241
make features
228
- make -j $(nproc)
242
+ make WITH_LTO=true -j $(nproc)
229
243
- name : Set sha8
230
244
id : slug
231
245
run : echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
@@ -250,9 +264,9 @@ jobs:
250
264
sudo dpkg -i kxstudio-repos_10.0.3_all.deb
251
265
sudo apt-get update -qq
252
266
# build-deps
253
- sudo apt-get install -yq libasound2-dev libcairo2-dev libgl1-mesa-dev liblo-dev libpulse-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev
267
+ sudo apt-get install -yqq libasound2-dev libcairo2-dev libdbus-1 -dev libgl1-mesa-dev liblo-dev libpulse-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev
254
268
# runtime testing
255
- sudo apt-get install -yq carla-git lilv-utils lv2-dev lv2lint valgrind
269
+ sudo apt-get install -yqq carla-git lilv-utils lv2-dev lv2lint valgrind
256
270
- name : Build plugins
257
271
env :
258
272
CFLAGS : -g
@@ -313,14 +327,14 @@ jobs:
313
327
done
314
328
- name : Test VST2 plugins
315
329
run : |
316
- for p in $(ls bin/ | grep vst.so); do \
330
+ for p in $(find bin/ | grep -e vst.so -e '.*\.vst/.*\.so' ); do \
317
331
env CARLA_BRIDGE_DUMMY=1 CARLA_BRIDGE_TESTING=native \
318
332
valgrind \
319
333
--error-exitcode=255 \
320
334
--leak-check=full \
321
335
--track-origins=yes \
322
336
--suppressions=./dpf/utils/valgrind-dpf.supp \
323
- /usr/lib/carla/carla-bridge-native vst2 ./bin/ ${p} "" 1>/dev/null; \
337
+ /usr/lib/carla/carla-bridge-native vst2 ./${p} "" 1>/dev/null; \
324
338
done
325
339
- name : Test VST3 plugins
326
340
run : |
0 commit comments