Skip to content

Commit 410d1ed

Browse files
committed
Build the tidy plugin on non-windows
1 parent 7deb273 commit 410d1ed

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ jobs:
138138
set(HAS_LLVM OFF)
139139
endif()
140140
141+
set(CLANG_TIDY OFF)
142+
if (NOT "${{ runner.os }}" STREQUAL "Windows")
143+
set(CLANG_TIDY ON)
144+
endif()
145+
141146
if ("${{ runner.os }}" STREQUAL "Windows" AND NOT "x${{ matrix.config.environment_script }}" STREQUAL "x")
142147
execute_process(
143148
COMMAND "${{ matrix.config.environment_script }}" && set
@@ -163,6 +168,7 @@ jobs:
163168
-D CMAKE_MAKE_PROGRAM=${ninja_program}
164169
-D SUBSPACE_BUILD_CIR=${HAS_LLVM}
165170
-D SUBSPACE_BUILD_SUBDOC=${HAS_LLVM}
171+
-D SUBSPACE_BUILD_TIDY=${CLANG_TIDY}
166172
RESULT_VARIABLE result
167173
)
168174
if (NOT result EQUAL 0)

.github/workflows/try.yml

+6
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ jobs:
138138
set(HAS_LLVM OFF)
139139
endif()
140140
141+
set(CLANG_TIDY OFF)
142+
if (NOT "${{ runner.os }}" STREQUAL "Windows")
143+
set(CLANG_TIDY ON)
144+
endif()
145+
141146
if ("${{ runner.os }}" STREQUAL "Windows" AND NOT "x${{ matrix.config.environment_script }}" STREQUAL "x")
142147
execute_process(
143148
COMMAND "${{ matrix.config.environment_script }}" && set
@@ -162,6 +167,7 @@ jobs:
162167
-D CMAKE_MAKE_PROGRAM=${ninja_program}
163168
-D SUBSPACE_BUILD_CIR=${HAS_LLVM}
164169
-D SUBSPACE_BUILD_SUBDOC=${HAS_LLVM}
170+
-D SUBSPACE_BUILD_TIDY=${CLANG_TIDY}
165171
RESULT_VARIABLE result
166172
)
167173
if (NOT result EQUAL 0)

0 commit comments

Comments
 (0)