Skip to content

Commit 1984bc4

Browse files
committed
use dummy backend for github ci
1 parent 4be0996 commit 1984bc4

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ jobs:
5757
- name: Configure CMake
5858
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
5959
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
60+
# RTAUDIO_DUMMY=ON uses the dummy backend since CI runners have no audio hardware.
6061
run: >
6162
cmake -B ${{ steps.strings.outputs.build-output-dir }}
6263
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
6364
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
6465
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
66+
-DRTAUDIO_DUMMY=ON
6567
-S ${{ github.workspace }}
6668
6769
- name: Build

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@ target_include_directories(RunFilters PRIVATE
2727
example
2828
)
2929

30+
# Option to use RtAudio dummy backend (for CI environments without audio hardware)
31+
option(RTAUDIO_DUMMY "Use RtAudio dummy backend (no audio output)" OFF)
32+
3033
# Platform-specific RtAudio configuration for MoogLadderExample
31-
if(WIN32)
34+
if(RTAUDIO_DUMMY)
35+
# Dummy backend - no platform API defined, RtAudio auto-selects dummy
36+
message(STATUS "Using RtAudio dummy backend")
37+
elseif(WIN32)
3238
target_compile_definitions(MoogLadderExample PRIVATE __WINDOWS_DS__)
3339
target_link_libraries(MoogLadderExample PRIVATE dsound ole32 winmm)
3440
elseif(APPLE)

0 commit comments

Comments
 (0)