summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2021-01-16 13:37:06 +0100
committerDaniel Schürmann <daschuer@mixxx.org>2021-01-16 13:45:07 +0100
commitb61135d2b29759ac8155961b25d46f165c721ae6 (patch)
tree7309fd08268133cced2029aba3068e8dfc85bbf7 /.github
parent35f67caf121e7a9277f5324d97f4e7535a898dd4 (diff)
make cmake build type individual per target and
support multi target generators like Visual Studio
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6c2dcb6d29..e1f09bfcf2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -19,6 +19,7 @@ jobs:
-DMODPLUG=ON
-DWAVPACK=ON
cmake_generator: Unix Makefiles
+ cmake_build_type: Release
ctest_args:
compiler_cache: ccache
compiler_cache_path: ~/.ccache
@@ -38,6 +39,7 @@ jobs:
-DMODPLUG=ON
-DWAVPACK=ON
cmake_generator: Unix Makefiles
+ cmake_build_type: Release
ctest_args:
compiler_cache: ccache
compiler_cache_path: ~/.ccache
@@ -54,6 +56,7 @@ jobs:
-DHSS1394=ON
-DMACOS_BUNDLE=ON
cmake_generator: Unix Makefiles
+ cmake_build_type: Release
# TODO: Fix this broken test on macOS
ctest_args: --exclude-regex DirectoryDAOTest.relocateDirectory
cpack_generator: DragNDrop
@@ -76,6 +79,7 @@ jobs:
cc: cl
cxx: cl
cmake_generator: Ninja
+ cmake_build_type: Release
# TODO: Fix these broken tests on Windows
ctest_args: --exclude-regex '^AutoDJProcessorTest.*$'
cpack_generator: WIX
@@ -195,7 +199,7 @@ jobs:
run: >-
cmake
-G "${{ matrix.cmake_generator }}"
- -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
"-DCMAKE_PREFIX_PATH=${{ env.CMAKE_PREFIX_PATH }}"
-DDEBUG_ASSERTIONS_FATAL=ON
-DQt5_DIR=${{ env.QT_PATH }} ${{ matrix.cmake_args }} ${{ env.CMAKE_ARGS_EXTRA }}
@@ -207,6 +211,7 @@ jobs:
-DOPUS=ON
-DQTKEYCHAIN=ON
-DVINYLCONTROL=ON
+ -DCMAKE_VERBOSE_MAKEFILE=OFF
..
working-directory: build
env:
@@ -222,7 +227,7 @@ jobs:
uses: ammaraskar/msvc-problem-matcher@master
- name: "Build"
- run: cmake --build .
+ run: cmake --build . --config ${{ matrix.cmake_build_type }}
working-directory: build
env:
CC: ${{ matrix.cc }}
@@ -247,7 +252,7 @@ jobs:
CTEST_OUTPUT_ON_FAILURE: 1
- name: Benchmark
- run: cmake --build . --target mixxx-benchmark
+ run: cmake --build . --target mixxx-benchmark --config Release
working-directory: build
env:
# Render analyzer waveform tests to an offscreen buffer