Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libfaust reorganization and updates #175

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
11deccb
libfaust reorganization
DBraun Jul 9, 2023
f5d8d4a
Faust can load soundfile directly from filesystem
DBraun Jul 9, 2023
378d47b
Update test_libfaust_box.py
DBraun Jul 10, 2023
51ac0ef
add implicit conversions for box and signal
DBraun Jul 10, 2023
4003b5a
remove tests that weren't supposed to be added
DBraun Jul 10, 2023
3a9d966
miscellaneous updates
DBraun Jul 22, 2023
85ed057
fix faust soundfiles
DBraun Jul 22, 2023
7f9e636
Update main.py
DBraun Jul 22, 2023
d2a383a
Update ProcessorBase.cpp
DBraun Jul 22, 2023
d2d5cfe
Update PluginProcessor.cpp
DBraun Jul 22, 2023
c9f169a
Update PluginProcessor.cpp
DBraun Jul 22, 2023
7374a05
refactor
DBraun Jul 24, 2023
da188e5
add comment
DBraun Jul 24, 2023
93da910
Update FaustBoxAPI.cpp
DBraun Sep 12, 2023
c511af8
Update PluginProcessor.cpp
DBraun Sep 13, 2023
dbc818f
Update build_macos.sh
DBraun Sep 13, 2023
4f49e01
Update faust
DBraun Sep 15, 2023
1bc3f00
comments
DBraun Sep 15, 2023
17d4432
update to JUCE 7.0.7
DBraun Sep 16, 2023
9fb54b4
Update Sampler
DBraun Sep 16, 2023
1001a51
test new backends codebox and jsfx
DBraun Sep 16, 2023
0c8bc46
libfaust: add sigDelay1 and boxRound
DBraun Sep 16, 2023
fab209d
Update FaustSignalAPI.cpp
DBraun Sep 16, 2023
4ce3a3e
update libfaust to 2.68.0
DBraun Sep 16, 2023
6b36f0c
update Faust to 2.68.1
DBraun Sep 17, 2023
0201f94
Delete null.c
DBraun Sep 17, 2023
e9dfa59
Update faustlibraries
DBraun Sep 17, 2023
1809940
update Dockerfile
DBraun Sep 17, 2023
8bc8f43
upgrade cibuildwheel to 2.15.0
DBraun Sep 17, 2023
f1a02c8
Update Dockerfile
DBraun Sep 17, 2023
d1dff73
Update test_plugins.py
DBraun Sep 17, 2023
b358e2c
trying to fix Linux
DBraun Sep 17, 2023
704c8b4
trying to fix stuff
DBraun Sep 17, 2023
823b769
try some fixes
DBraun Sep 17, 2023
0189587
fix dumb math mistake
DBraun Sep 17, 2023
dbb703d
skip tests on dockerfile
DBraun Sep 17, 2023
0d8423a
add back Ubuntu tests
DBraun Sep 17, 2023
810b02d
Update all.yml
DBraun Sep 17, 2023
e0a10a6
minor Linux change
DBraun Sep 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 11 additions & 25 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ jobs:
strategy:
matrix:
include:
- { python-version: "3.7", pythonLibPath: "/opt/python/cp37-cp37m/lib", pythonInclude: "/opt/python/cp37-cp37m/include/python3.7m", cibwbuild: "cp37-manylinux_x86_64"}
- { python-version: "3.8", pythonLibPath: "/opt/python/cp39-cp38/lib", pythonInclude: "/opt/python/cp38-cp38/include/python3.8", cibwbuild: "cp38-manylinux_x86_64"}
- { python-version: "3.9", pythonLibPath: "/opt/python/cp39-cp39/lib", pythonInclude: "/opt/python/cp39-cp39/include/python3.9", cibwbuild: "cp39-manylinux_x86_64"}
- { python-version: "3.10", pythonLibPath: "/opt/python/cp310-cp310/lib", pythonInclude: "/opt/python/cp310-cp310/include/python3.10", cibwbuild: "cp310-manylinux_x86_64"}
- { python-version: "3.11", pythonLibPath: "/opt/python/cp311-cp311/lib", pythonInclude: "/opt/python/cp311-cp311/include/python3.11", cibwbuild: "cp311-manylinux_x86_64"}
# - { python-version: "3.7", pythonLibPath: "/opt/python/cp37-cp37m/lib", pythonInclude: "/opt/python/cp37-cp37m/include/python3.7m", cibwbuild: "cp37-manylinux_aarch64"}
# - { python-version: "3.8", pythonLibPath: "/opt/python/cp39-cp38/lib", pythonInclude: "/opt/python/cp38-cp38/include/python3.8", cibwbuild: "cp38-manylinux_aarch64"}
# - { python-version: "3.9", pythonLibPath: "/opt/python/cp39-cp39/lib", pythonInclude: "/opt/python/cp39-cp39/include/python3.9", cibwbuild: "cp39-manylinux_aarch64"}
# - { python-version: "3.10", pythonLibPath: "/opt/python/cp310-cp310/lib", pythonInclude: "/opt/python/cp310-cp310/include/python3.10", cibwbuild: "cp310-manylinux_aarch64"}
# - { python-version: "3.11", pythonLibPath: "/opt/python/cp311-cp311/lib", pythonInclude: "/opt/python/cp311-cp311/include/python3.11", cibwbuild: "cp311-manylinux_aarch64"}

steps:
- uses: actions/checkout@v3
Expand All @@ -30,7 +29,7 @@ jobs:

- name: Set up QEMU for aarch64 on Linux
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all

Expand All @@ -45,28 +44,23 @@ jobs:
cd thirdparty/libfaust
sh download_libfaust.sh

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.3
uses: pypa/cibuildwheel@v2.15.0
env:
CIBW_PLATFORM: linux
CIBW_BUILD: ${{ matrix.cibwbuild }}
CIBW_BUILD_VERBOSITY: 3
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
CIBW_BEFORE_BUILD_LINUX:
export PYTHONLIBPATH=${{ matrix.pythonLibPath }} && export PYTHONINCLUDEPATH=${{ matrix.pythonInclude }} && pip install --upgrade pip && sh -v build_linux.sh
export PYTHONLIBPATH=${{ matrix.pythonLibPath }} && export PYTHONINCLUDEPATH=${{ matrix.pythonInclude }} && sh -v build_linux.sh
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
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 2014 {wheel})
CIBW_TEST_REQUIRES: -r test-requirements.txt soundfile jax flax optax
CIBW_TEST_COMMAND: "rm -rf dawdreamer/*.so* && cd {project}/tests && python -m pytest -v ."
CIBW_TEST_REQUIRES: -r test-requirements.txt soundfile flax
CIBW_TEST_COMMAND: "rm -rf dawdreamer/*.so* && cd {project}/tests && pytest -v ."
CIBW_ARCHS: auto64
CIBW_ARCHS_LINUX: "auto aarch64" # On an Linux Intel runner with qemu installed, build Intel and ARM wheels
CIBW_TEST_SKIP: "*311*"
CIBW_ARCHS_LINUX: auto64 aarch64 # On an Linux Intel runner with qemu installed, build Intel and ARM wheels
CIBW_TEST_SKIP: "*38* *39* *311*" # Only care about 310 (current Google Colab version)

- uses: actions/upload-artifact@v3
with:
Expand All @@ -75,12 +69,6 @@ jobs:

build-ubuntu-docker:
runs-on: ubuntu-20.04

strategy:
matrix:
include:
- { python-version: "3.9"}

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -94,7 +82,6 @@ jobs:
strategy:
matrix:
include:
- { os: windows-2022, python-version: "3.7", CIBW-BUILD: "cp37*"}
- { os: windows-2022, python-version: "3.8", CIBW-BUILD: "cp38*"}
- { os: windows-2022, python-version: "3.9", CIBW-BUILD: "cp39*"}
- { os: windows-2022, python-version: "3.10", CIBW-BUILD: "cp310*"}
Expand Down Expand Up @@ -207,7 +194,7 @@ jobs:
sh download_libfaust.sh

- name: Build wheels ${{ matrix.python-version }}
uses: pypa/cibuildwheel@v2.12.3
uses: pypa/cibuildwheel@v2.15.0
env:
# note that the Projucer project refers to PYTHONMAJOR and pythonLocation, so they must be set here
PYTHONMAJOR: ${{ matrix.python-version }}
Expand All @@ -219,14 +206,13 @@ jobs:
xcodebuild ARCHS="${{matrix.ARCHS}}" ONLY_ACTIVE_ARCH=NO -configuration Release-${{matrix.ARCHS}} -project Builds/MacOSX/DawDreamer.xcodeproj/ CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
cd Builds/MacOSX/build/Release-${{matrix.ARCHS}}
mv dawdreamer.so.dylib dawdreamer.so
CIBW_TEST_REQUIRES: -r test-requirements.txt
CIBW_TEST_REQUIRES: -r test-requirements.txt jax[cpu] flax
CIBW_TEST_COMMAND: "cd {project}/tests; python -m pytest -v ."
CIBW_BUILD: ${{matrix.build}}
CIBW_ARCHS: auto64
CIBW_ARCHS_MACOS: ${{matrix.ARCHS}}
CIBW_ENVIRONMENT_MACOS: ARCHS="${{matrix.ARCHS}}"
# todo: want to test Python 3.11
CIBW_TEST_SKIP: "*311* *arm64*"
CIBW_TEST_SKIP: "*311* *arm64*" # Skip 311 because some vst effects output silence on GitHub Actions only

- uses: actions/upload-artifact@v3
with:
Expand Down
Loading
Loading