From 5168e030f8e4e9b2d442e5593a10323d66efa23e Mon Sep 17 00:00:00 2001 From: Hennadiy Brych Date: Sat, 25 May 2024 19:06:50 -0400 Subject: [PATCH] GitHub Actions: clang-format enabled and test check --- .github/workflows/cmake.yml | 4 ++++ main.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 888d1fa..4d97138 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -39,6 +39,10 @@ jobs: with: submodules: 'true' + - name: clang-format Check (linux64) + if: ${{ matrix.os == 'ubuntu-24.04' }} + run: find . -iname '*.hh' -o -iname '*.cc' -o -iname '*.ixx' | xargs clang-format-18 --dry-run -Werror + - name: CMake Configure (win32) if: ${{ matrix.os == 'windows-2022' && matrix.platform == 32 }} run: cmake -B ${{env.build_directory}} -G "Visual Studio 17 2022" -A Win32 -DCMAKE_BUILD_TYPE=${{env.build_type}} -DREDUMPER_VERSION_BUILD=${{github.run_number}} diff --git a/main.cc b/main.cc index ed3f4ca..4485fdd 100644 --- a/main.cc +++ b/main.cc @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) } catch(...) { - LOG("error: unhandled exception"); + LOG ("error: unhandled exception"); exit_code = -2; }