Skip to content

Commit 1c4ff66

Browse files
committed
Update CI and DPF
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 9fdcea5 commit 1c4ff66

File tree

5 files changed

+206
-158
lines changed

5 files changed

+206
-158
lines changed

.github/workflows/build.yml

Lines changed: 202 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -9,181 +9,229 @@ on:
99
- '*'
1010
env:
1111
DEBIAN_FRONTEND: noninteractive
12+
HOMEBREW_NO_AUTO_UPDATE: 1
1213

1314
jobs:
1415
linux-arm64:
1516
runs-on: ubuntu-18.04
1617
steps:
17-
- uses: actions/checkout@v2
18-
with:
19-
submodules: recursive
20-
- name: Set up dependencies
21-
run: |
22-
sudo dpkg --add-architecture arm64 && \
23-
sudo sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list && \
24-
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 && \
25-
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 && \
26-
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 && \
27-
sudo apt-get update -qq && \
28-
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 qemu-user-static
29-
- name: Build linux arm64 cross-compiled
30-
env:
31-
CC: aarch64-linux-gnu-gcc
32-
CXX: aarch64-linux-gnu-g++
33-
LDFLAGS: -static-libgcc -static-libstdc++
34-
run: |
35-
make -j $(nproc)
36-
- name: Set sha8
37-
id: slug
38-
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
39-
- uses: actions/upload-artifact@v2
40-
with:
41-
name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
42-
path: |
43-
bin/*
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: recursive
21+
- name: Set up dependencies
22+
run: |
23+
sudo dpkg --add-architecture arm64
24+
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
28+
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
35+
- name: Build linux arm64 cross-compiled
36+
env:
37+
CC: aarch64-linux-gnu-gcc
38+
CXX: aarch64-linux-gnu-g++
39+
LDFLAGS: -static-libgcc -static-libstdc++
40+
run: |
41+
make features
42+
make -j $(nproc)
43+
- name: Set sha8
44+
id: slug
45+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
46+
- uses: actions/upload-artifact@v2
47+
with:
48+
name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
49+
path: |
50+
bin/*
4451
4552
linux-armhf:
4653
runs-on: ubuntu-18.04
4754
steps:
48-
- uses: actions/checkout@v2
49-
with:
50-
submodules: recursive
51-
- name: Set up dependencies
52-
run: |
53-
sudo dpkg --add-architecture armhf && \
54-
sudo sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list && \
55-
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 && \
56-
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 && \
57-
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 && \
58-
sudo apt-get update -qq && \
59-
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 qemu-user-static
60-
- name: Build linux armhf cross-compiled
61-
env:
62-
CC: arm-linux-gnueabihf-gcc
63-
CXX: arm-linux-gnueabihf-g++
64-
LDFLAGS: -static-libgcc -static-libstdc++
65-
run: |
66-
make -j $(nproc)
67-
- name: Set sha8
68-
id: slug
69-
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
70-
- uses: actions/upload-artifact@v2
71-
with:
72-
name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
73-
path: |
74-
bin/*
55+
- uses: actions/checkout@v2
56+
with:
57+
submodules: recursive
58+
- name: Set up dependencies
59+
run: |
60+
sudo dpkg --add-architecture armhf
61+
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
65+
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+
- name: Build linux armhf cross-compiled
73+
env:
74+
CC: arm-linux-gnueabihf-gcc
75+
CXX: arm-linux-gnueabihf-g++
76+
LDFLAGS: -static-libgcc -static-libstdc++
77+
run: |
78+
make features
79+
make -j $(nproc)
80+
- name: Set sha8
81+
id: slug
82+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
83+
- uses: actions/upload-artifact@v2
84+
with:
85+
name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
86+
path: |
87+
bin/*
7588
76-
linux-x64:
89+
linux-x86:
7790
runs-on: ubuntu-18.04
7891
steps:
79-
- uses: actions/checkout@v2
80-
with:
81-
submodules: recursive
82-
- name: Set up dependencies
83-
run: |
84-
sudo apt-get install -yq libasound2-dev libgl1-mesa-dev liblo-dev libpulse-dev
85-
- name: Build linux x64
86-
env:
87-
LDFLAGS: -static-libgcc -static-libstdc++
88-
run: |
89-
make -j $(nproc)
90-
- name: Set sha8
91-
id: slug
92-
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
93-
- uses: actions/upload-artifact@v2
94-
with:
95-
name: ${{ github.event.repository.name }}-linux-x64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
96-
path: |
97-
bin/*
92+
- uses: actions/checkout@v2
93+
with:
94+
submodules: recursive
95+
- name: Set up dependencies
96+
run: |
97+
sudo dpkg --add-architecture i386
98+
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
101+
env:
102+
CFLAGS: -m32
103+
CXXFLAGS: -m32
104+
LDFLAGS: -m32 -static-libgcc -static-libstdc++
105+
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
106+
run: |
107+
make features
108+
make -j $(nproc)
109+
- name: Set sha8
110+
id: slug
111+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
112+
- uses: actions/upload-artifact@v2
113+
with:
114+
name: ${{ github.event.repository.name }}-linux-x86-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
115+
path: |
116+
bin/*
117+
118+
linux-x86_64:
119+
runs-on: ubuntu-18.04
120+
steps:
121+
- uses: actions/checkout@v2
122+
with:
123+
submodules: recursive
124+
- name: Set up dependencies
125+
run: |
126+
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
128+
- name: Build linux x86_64
129+
env:
130+
LDFLAGS: -static-libgcc -static-libstdc++
131+
run: |
132+
make features
133+
make -j $(nproc)
134+
- name: Set sha8
135+
id: slug
136+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
137+
- uses: actions/upload-artifact@v2
138+
with:
139+
name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
140+
path: |
141+
bin/*
98142
99143
macos-universal:
100144
runs-on: macos-10.15
101145
steps:
102-
- uses: actions/checkout@v2
103-
with:
104-
submodules: recursive
105-
- name: Fix up Xcode
106-
run: |
107-
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
108-
sudo xcode-select -s "/Applications/Xcode_12.3.app"
109-
- name: Build macOS universal
110-
env:
111-
CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
112-
CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
113-
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12
114-
run: |
115-
make NOOPT=true -j $(sysctl -n hw.logicalcpu) && \
116-
./dpf/utils/package-osx-bundles.sh
117-
- name: Set sha8
118-
id: slug
119-
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
120-
- uses: actions/upload-artifact@v2
121-
with:
122-
name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
123-
path: |
124-
*-macOS.pkg
125-
bin/*
126-
!bin/*-ladspa.dylib
127-
!bin/*-dssi.dylib
128-
!bin/lv2
129-
!bin/vst2
146+
- uses: actions/checkout@v2
147+
with:
148+
submodules: recursive
149+
- name: Fix up Xcode
150+
run: |
151+
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
152+
sudo xcode-select -s "/Applications/Xcode_12.3.app"
153+
- name: Build macOS universal
154+
env:
155+
CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
156+
CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
157+
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12
158+
run: |
159+
make features
160+
make NOOPT=true -j $(sysctl -n hw.logicalcpu)
161+
./dpf/utils/package-osx-bundles.sh
162+
- name: Set sha8
163+
id: slug
164+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
165+
- uses: actions/upload-artifact@v2
166+
with:
167+
name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
168+
path: |
169+
*-macOS.pkg
170+
bin/*
171+
!bin/*-ladspa.dylib
172+
!bin/*-dssi.dylib
173+
!bin/lv2
174+
!bin/vst2
130175
131176
win32:
132177
runs-on: ubuntu-20.04
133178
steps:
134-
- uses: actions/checkout@v2
135-
with:
136-
submodules: recursive
137-
- name: Set up dependencies
138-
run: |
139-
sudo dpkg --add-architecture i386 && \
140-
sudo apt-get update -qq && \
141-
sudo apt-get install -yq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable:i386
142-
- name: Build win32 cross-compiled
143-
env:
144-
CC: i686-w64-mingw32-gcc
145-
CXX: i686-w64-mingw32-g++
146-
EXE_WRAPPER: wine
147-
PKG_CONFIG: "false"
148-
WINEDEBUG: "-all"
149-
run: |
150-
make -j $(nproc)
151-
- name: Set sha8
152-
id: slug
153-
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
154-
- uses: actions/upload-artifact@v2
155-
with:
156-
name: ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
157-
path: |
158-
bin/*
159-
!bin/*-ladspa.dll
160-
!bin/*-dssi.dll
179+
- uses: actions/checkout@v2
180+
with:
181+
submodules: recursive
182+
- name: Set up dependencies
183+
run: |
184+
sudo dpkg --add-architecture i386
185+
sudo apt-get update -qq
186+
sudo apt-get install -yq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable:i386
187+
- name: Build win32 cross-compiled
188+
env:
189+
CC: i686-w64-mingw32-gcc
190+
CXX: i686-w64-mingw32-g++
191+
EXE_WRAPPER: wine
192+
PKG_CONFIG: "false"
193+
WINEDEBUG: "-all"
194+
run: |
195+
make features
196+
make -j $(nproc)
197+
- name: Set sha8
198+
id: slug
199+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
200+
- uses: actions/upload-artifact@v2
201+
with:
202+
name: ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
203+
path: |
204+
bin/*
205+
!bin/*-ladspa.dll
206+
!bin/*-dssi.dll
161207
162208
win64:
163209
runs-on: ubuntu-20.04
164210
steps:
165-
- uses: actions/checkout@v2
166-
with:
167-
submodules: recursive
168-
- name: Set up dependencies
169-
run: |
170-
sudo apt-get install -yq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
171-
- name: Build win64 cross-compiled
172-
env:
173-
CC: x86_64-w64-mingw32-gcc
174-
CXX: x86_64-w64-mingw32-g++
175-
EXE_WRAPPER: wine
176-
PKG_CONFIG: "false"
177-
WINEDEBUG: "-all"
178-
run: |
179-
make -j $(nproc)
180-
- name: Set sha8
181-
id: slug
182-
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
183-
- uses: actions/upload-artifact@v2
184-
with:
185-
name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
186-
path: |
187-
bin/*
188-
!bin/*-ladspa.dll
189-
!bin/*-dssi.dll
211+
- uses: actions/checkout@v2
212+
with:
213+
submodules: recursive
214+
- name: Set up dependencies
215+
run: |
216+
sudo apt-get update -qq
217+
sudo apt-get install -yq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
218+
- name: Build win64 cross-compiled
219+
env:
220+
CC: x86_64-w64-mingw32-gcc
221+
CXX: x86_64-w64-mingw32-g++
222+
EXE_WRAPPER: wine
223+
PKG_CONFIG: "false"
224+
WINEDEBUG: "-all"
225+
run: |
226+
make features
227+
make -j $(nproc)
228+
- name: Set sha8
229+
id: slug
230+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
231+
- uses: actions/upload-artifact@v2
232+
with:
233+
name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
234+
path: |
235+
bin/*
236+
!bin/*-ladspa.dll
237+
!bin/*-dssi.dll

dpf

Submodule dpf updated 62 files

plugins/AmplitudeImposer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ include ../../dpf/Makefile.plugins.mk
3030

3131
TARGETS += jack
3232
TARGETS += ladspa
33-
TARGETS += vst
33+
TARGETS += vst2
3434

3535
ifeq ($(HAVE_CAIRO_OR_OPENGL),true)
3636
ifeq ($(HAVE_LIBLO),true)

0 commit comments

Comments
 (0)