Skip to content

Commit

Permalink
trying to fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DBraun committed Sep 17, 2023
1 parent b358e2c commit 704c8b4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
with:
submodules: true

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

- name: clean faust libraries
run: |
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
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_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
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ RUN /bin/bash -c "source test-env/bin/activate && pip install librosa scipy nump
# Build wheel
WORKDIR /DawDreamer
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/DawDreamer/dawdreamer:/DawDreamer/thirdparty/libfaust/ubuntu-x86_64/Release/lib
RUN python3.10 -m build --wheel
RUN python -m build --wheel

# Install wheel
WORKDIR /DawDreamer
RUN python3.10 -m pip install dist/dawdreamer*.whl
RUN pip install dist/dawdreamer*.whl

# Run all Tests
WORKDIR /DawDreamer/tests
RUN python3.10 -m pytest -v .
RUN pytest -v .
2 changes: 1 addition & 1 deletion build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd Builds/LinuxMakefile
ldconfig

# faust/architecture/faust/midi/RtMidi.cpp has #include <alsa/asoundlib.h>
make VERBOSE=1 CONFIG=Release LIBS="-lstdc++fs" LDFLAGS="-L/__w/DawDreamer/DawDreamer/alsa-lib/src -L$PYTHONLIBPATH" CXXFLAGS="-I../../alsa-lib/include -I$PYTHONINCLUDEPATH"
make VERBOSE=1 CONFIG=Release LIBS="-lstdc++fs" LDFLAGS="-L../../alsa-lib/src -L$PYTHONLIBPATH" CXXFLAGS="-I../../alsa-lib/include -I$PYTHONINCLUDEPATH"
mv build/libdawdreamer.so ../../dawdreamer/dawdreamer.so
cd ../..

Expand Down
3 changes: 2 additions & 1 deletion tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_stereo_plugin_effect(plugin_path):

plugin_basename = splitext(basename(plugin_path))[0]

engine = daw.RenderEngine(SAMPLE_RATE, BUFFER_SIZE)
engine = daw.RenderEngine(SAMPLE_RATE, 1) # todo: test more buffer sizes

data = load_audio_file(ASSETS / "575854__yellowtree__d-b-funk-loop.wav", DURATION+.1)

Expand All @@ -35,6 +35,7 @@ def test_stereo_plugin_effect(plugin_path):

# check that it's non-silent
audio = engine.get_audio()
assert not np.isnan(audio).any()
assert(np.mean(np.abs(audio)) > .01)


Expand Down

0 comments on commit 704c8b4

Please sign in to comment.