File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ Checks: >
88
99# Turn all the warnings from the checks above into errors.
1010UseColor : true
11- WarningsAsErrors : ' * '
11+ WarningsAsErrors : ' '
Original file line number Diff line number Diff line change 6161 - uses : actions/checkout@v4
6262
6363 - name : Setup Cpp
64- uses : aminya/setup-cpp@v0.44.0
64+ uses : aminya/setup-cpp@v0.46.1
6565 with :
6666 compiler : ${{ matrix.compiler }}
6767
Original file line number Diff line number Diff line change @@ -95,6 +95,12 @@ if(BUILD_TESTING AND INJA_BUILD_TESTS)
9595 target_compile_options (inja_test PRIVATE -Wall -Wextra -Werror)
9696 endif ()
9797
98+ if (INJA_ENABLE_CLANG_TIDY)
99+ find_program (CLANG_TIDY_EXE NAMES "clang-tidy" REQUIRED)
100+ set (CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE} " "-config-file=${CMAKE_CURRENT_SOURCE_DIR} /.clang-tidy" )
101+ set_target_properties (inja_test PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND} " )
102+ endif ()
103+
98104
99105 add_library (single_inja INTERFACE )
100106 target_compile_features (single_inja INTERFACE cxx_std_17)
@@ -110,13 +116,6 @@ if(BUILD_TESTING AND INJA_BUILD_TESTS)
110116 add_executable (inja_benchmark test /benchmark.cpp test /test -common.hpp)
111117 target_link_libraries (inja_benchmark PRIVATE inja)
112118 target_include_directories (inja_benchmark PRIVATE third_party/include )
113-
114-
115- if (INJA_ENABLE_CLANG_TIDY)
116- find_program (CLANG_TIDY_EXE NAMES "clang-tidy" REQUIRED)
117- set (CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE} " "-config-file=${CMAKE_CURRENT_SOURCE_DIR} /.clang-tidy" )
118- set_target_properties (single_inja_test PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND} " )
119- endif ()
120119endif ()
121120
122121
You can’t perform that action at this time.
0 commit comments