Fix macos tests and run them in CI
This commit is contained in:
parent
0953936184
commit
dd0d3b2327
2 changed files with 19 additions and 5 deletions
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
|
|
@ -80,9 +80,12 @@ jobs:
|
|||
shell: bash
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
run: cmake --build . --config "$BUILD_TYPE" -j 2 --target sfizz_tests
|
||||
- name: Test
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: ${{runner.workspace}}/build/tests/sfizz_tests
|
||||
# Reenable with newer cmakes
|
||||
# working-directory: ${{runner.workspace}}/build
|
||||
# run: ctest -j 2 -C "$BUILD_TYPE" --output-on-failure
|
||||
- name: Build all
|
||||
shell: bash
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
|
|
@ -117,19 +120,30 @@ jobs:
|
|||
working-directory: ${{runner.workspace}}/build
|
||||
run: |
|
||||
cmake "$GITHUB_WORKSPACE" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
|
||||
-DSFIZZ_AU=ON \
|
||||
-DSFIZZ_LV2=ON \
|
||||
-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 tests
|
||||
shell: bash
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
run: |
|
||||
cmake --build . --config "$BUILD_TYPE" -j 2 --target sfizz_tests
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: ${{runner.workspace}}/build/tests/sfizz_tests
|
||||
# Reenable with newer cmakes
|
||||
# working-directory: ${{runner.workspace}}/build
|
||||
# run: ctest -j 2 -C "$BUILD_TYPE" --output-on-failure
|
||||
- name: Build plugins
|
||||
shell: bash
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
run: cmake --build . --config "Release" -j 2
|
||||
run: cmake --build . --config "$BUILD_TYPE" -j 2
|
||||
- name: Package OSX bundles
|
||||
shell: bash
|
||||
working-directory: ${{runner.workspace}}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ void gainSSE(const float* gain, const float* input, float* output, unsigned size
|
|||
|
||||
#if SFIZZ_HAVE_SSE2
|
||||
const auto* lastAligned = prevAligned<ByteAlignment>(sentinel);
|
||||
while (unaligned<ByteAlignment>(input, output) && output < lastAligned)
|
||||
while (unaligned<ByteAlignment>(input, output, gain) && output < lastAligned)
|
||||
*output++ = (*gain++) * (*input++);
|
||||
|
||||
while (output < lastAligned) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue