Skip to content

Commit b8b925b

Browse files
committed
update docs, dockerfile, and linux build script
1 parent 87e5c8b commit b8b925b

File tree

6 files changed

+576
-974
lines changed

6 files changed

+576
-974
lines changed

.github/workflows/all.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,21 @@ jobs:
4848
CIBW_BUILD_VERBOSITY: 3
4949
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux_2_34_x86_64
5050
CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/manylinux_2_34_aarch64
51-
CIBW_BEFORE_BUILD_LINUX:
52-
export PYTHONLIBPATH=${{ matrix.pythonLibPath }} && export PYTHONINCLUDEPATH=${{ matrix.pythonInclude }} && sh -v build_linux.sh
51+
CIBW_BEFORE_BUILD_LINUX: >
52+
yum install -y ncurses-devel libX11-devel libXrandr-devel libXinerama-devel
53+
libXrender-devel libXcomposite-devel libXcursor-devel freetype-devel
54+
alsa-lib-devel &&
55+
export PYTHONLIBPATH=${{ matrix.pythonLibPath }} &&
56+
export PYTHONINCLUDEPATH=${{ matrix.pythonInclude }} &&
57+
cd thirdparty/libsamplerate &&
58+
cmake -DCMAKE_BUILD_TYPE=Release -Bbuild_release -DCMAKE_POSITION_INDEPENDENT_CODE=ON &&
59+
cmake --build build_release --config Release &&
60+
cd ../.. &&
61+
cd Builds/LinuxMakefile &&
62+
make CONFIG=Release LIBS="-lstdc++fs" LDFLAGS="-L$PYTHONLIBPATH" CXXFLAGS="-I$PYTHONINCLUDEPATH" &&
63+
strip --strip-unneeded build/libdawdreamer.so &&
64+
mv build/libdawdreamer.so ../../dawdreamer/dawdreamer.so &&
65+
cd ../..
5366
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
5467
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/dawdreamer:$PWD/thirdparty/libfaust/ubuntu-x86_64/Release/lib && pip install auditwheel-symbols && (auditwheel repair -w {dest_dir} {wheel} || auditwheel-symbols --manylinux 2_34 {wheel})
5568
CIBW_TEST_REQUIRES: -r test-requirements.txt soundfile

0 commit comments

Comments
 (0)