Skip to content

Commit

Permalink
Update for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Feb 18, 2024
1 parent b8d5872 commit 8ee3de7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build-arm-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false # show all errors for each platform (vs. cancel jobs on error)
matrix:
tests: ["chowdsp_buffers_test chowdsp_dsp_data_structures_test chowdsp_dsp_juce_test chowdsp_dsp_utils_test chowdsp_sources_test chowdsp_math_test chowdsp_simd_test chowdsp_filters_test chowdsp_waveshapers_test chowdsp_modal_dsp_test chowdsp_compressor_test"]
os: [macos-latest]
os: [macos-14]

steps:
- name: Get latest CMake
Expand Down Expand Up @@ -49,3 +49,13 @@ jobs:
env:
TEST_TARGETS: ${{ matrix.tests }}
run: cmake --build . --config Release --parallel 4 --target $TEST_TARGETS | xcpretty

- name: "Run Tests: ${{ matrix.tests }}"
if: (! matrix.live_gui)
working-directory: ${{env.WORK_DIR}}
shell: bash
env:
TEST_TARGETS: ${{ matrix.tests }}
run: |
ctest --test-dir build -C Release -R ${TEST_TARGETS// /|} --show-only
ctest --test-dir build -C Release -R ${TEST_TARGETS// /|} -j 4 --output-on-failure
11 changes: 9 additions & 2 deletions modules/common/chowdsp_logging/Loggers/chowdsp_Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static juce::File getSystemLogFileFolder()
#endif
}

Logger::Logger (LogFileParams loggerParams) : params (loggerParams)
Logger::Logger (const LogFileParams& loggerParams) : params (loggerParams)
{
using namespace LogFileHelpers;
using namespace CrashLogHelpers;
Expand Down Expand Up @@ -45,7 +45,14 @@ Logger::Logger (LogFileParams loggerParams) : params (loggerParams)

Logger::~Logger()
{
logger.internal_logger.flush();
try
{
logger.internal_logger.flush();
}
catch (const spdlog::spdlog_ex &ex)
{
jassertfalse;
}
LogFileHelpers::shutdownLogger();
}
} // namespace chowdsp
2 changes: 1 addition & 1 deletion modules/common/chowdsp_logging/Loggers/chowdsp_Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Logger
{
public:
Logger (const juce::String& logFileSubDir, const juce::String& logFileNameRoot);
explicit Logger (LogFileParams loggerParams);
explicit Logger (const LogFileParams& loggerParams);
~Logger();

[[nodiscard]] const juce::File& getLogFile() const { return log_file; }
Expand Down

0 comments on commit 8ee3de7

Please sign in to comment.