@@ -148,88 +148,6 @@ jobs:
148
148
name : Logs (include-what-you-use - ${{ matrix.os }} ${{ matrix.stdlib }})
149
149
path : ./*.log
150
150
151
- clang-include-cleaner :
152
-
153
- strategy :
154
- matrix :
155
- stdlib : [libstdc++, libc++]
156
- fail-fast : false
157
-
158
- runs-on : ubuntu-22.04
159
- if : ${{ github.repository_owner == 'danmar' }}
160
-
161
- env :
162
- QT_VERSION : 6.8.1
163
-
164
- steps :
165
- - uses : actions/checkout@v4
166
- with :
167
- persist-credentials : false
168
-
169
- - name : Install missing software
170
- run : |
171
- sudo apt-get update
172
- sudo apt-get install -y cmake make libpcre3-dev
173
- sudo apt-get install -y libgl-dev # missing dependency for using Qt in CMake
174
-
175
- - name : Install clang
176
- run : |
177
- sudo apt-get purge --auto-remove llvm python3-lldb-14 llvm-14
178
- wget https://apt.llvm.org/llvm.sh
179
- chmod +x llvm.sh
180
- sudo ./llvm.sh 19
181
- sudo apt-get install -y clang-tools-19
182
-
183
- - name : Install libc++
184
- if : matrix.stdlib == 'libc++'
185
- run : |
186
- sudo apt-get install -y libc++-19-dev
187
-
188
- - name : Install Qt ${{ env.QT_VERSION }}
189
- uses : jurplel/install-qt-action@v4
190
- with :
191
- version : ${{ env.QT_VERSION }}
192
- modules : ' qtcharts'
193
- install-deps : false
194
- cache : true
195
-
196
- - name : Prepare CMake
197
- run : |
198
- # TODO: why does it build dmake in the next step?
199
- cmake -S . -B cmake.output -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DUSE_QT6=On -DWITH_QCHART=On -DENABLE_CHECK_INTERNAL=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCPPCHK_GLIBCXX_DEBUG=Off -DUSE_MATCHCOMPILER=Off -DEXTERNALS_AS_SYSTEM=On -DUSE_LIBCXX=${{ matrix.stdlib == 'libc++' }}
200
- env :
201
- CC : clang-19
202
- CXX : clang++-19
203
-
204
- - name : Prepare CMake dependencies
205
- run : |
206
- # make sure the auto-generated GUI sources exist
207
- make -C cmake.output autogen
208
- # make sure the precompiled headers exist
209
- #make -C cmake.output/cli cmake_pch.hxx.pch
210
- #make -C cmake.output/gui cmake_pch.hxx.pch
211
- #make -C cmake.output/lib cmake_pch.hxx.pch
212
- #make -C cmake.output/test cmake_pch.hxx.pch
213
- # make sure the auto-generated GUI dependencies exist
214
- make -C cmake.output gui-build-deps
215
-
216
- - name : clang-include-cleaner
217
- run : |
218
- # TODO: run multi-threaded
219
- find $PWD/cli $PWD/lib $PWD/test $PWD/gui -maxdepth 1 -name "*.cpp" | xargs -t -n 1 clang-include-cleaner-19 --print=changes --extra-arg=-w --extra-arg=-stdlib=${{ matrix.stdlib }} -p cmake.output > clang-include-cleaner.log 2>&1
220
-
221
- - uses : actions/upload-artifact@v4
222
- if : success() || failure()
223
- with :
224
- name : Compilation Database (clang-include-cleaner - ${{ matrix.stdlib }})
225
- path : ./cmake.output/compile_commands.json
226
-
227
- - uses : actions/upload-artifact@v4
228
- if : success() || failure()
229
- with :
230
- name : Logs (clang-include-cleaner - ${{ matrix.stdlib }})
231
- path : ./*.log
232
-
233
151
clang-include-cleaner :
234
152
235
153
strategy :
0 commit comments