Skip to content

Commit c9f16fc

Browse files
committed
check
1 parent d7810bc commit c9f16fc

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Checks: >
88
99
# Turn all the warnings from the checks above into errors.
1010
UseColor: true
11-
WarningsAsErrors: '*'
11+
WarningsAsErrors: ''

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
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

CMakeLists.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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()
120119
endif()
121120

122121

0 commit comments

Comments
 (0)