From ae05002726335904efba81d742fe8fd42b1f0b09 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Mon, 25 Jul 2022 10:42:29 +0200 Subject: [PATCH] Fix macos tests and run them in CI --- .github/workflows/build.yml | 6 +++++- src/sfizz/simd/HelpersSSE.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 967141ff3..2ecbd4c34 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,9 +123,13 @@ jobs: -DSFIZZ_LV2_UI=ON \ -DSFIZZ_VST=ON \ -DSFIZZ_JACK=OFF \ - -DSFIZZ_TESTS=OFF \ + -DSFIZZ_TESTS=ON \ -DSFIZZ_SHARED=OFF \ -DSFIZZ_STATIC_DEPENDENCIES=OFF + - name: Build and run tests + run: | + cmake --build . --config "Release" -j 2 --target sfizz_tests && \ + ctest -j 2 --output-on-failure - name: Build plugins shell: bash working-directory: ${{runner.workspace}}/build diff --git a/src/sfizz/simd/HelpersSSE.cpp b/src/sfizz/simd/HelpersSSE.cpp index 3a9d65c4a..a9d4ca9c4 100644 --- a/src/sfizz/simd/HelpersSSE.cpp +++ b/src/sfizz/simd/HelpersSSE.cpp @@ -108,7 +108,7 @@ void gainSSE(const float* gain, const float* input, float* output, unsigned size #if SFIZZ_HAVE_SSE2 const auto* lastAligned = prevAligned(sentinel); - while (unaligned(input, output) && output < lastAligned) + while (unaligned(input, output, gain) && output < lastAligned) *output++ = (*gain++) * (*input++); while (output < lastAligned) {