@@ -120,6 +120,7 @@ jobs:
120120 make -C cmake.output triage-build-ui-deps
121121
122122 - name : iwyu_tool
123+ if : false
123124 run : |
124125 PWD=$(pwd)
125126 # -isystem/usr/lib/clang/17/include
@@ -144,91 +145,3 @@ jobs:
144145 with :
145146 name : Logs (include-what-you-use - ${{ matrix.stdlib }})
146147 path : ./*.log
147-
148- clang-include-cleaner :
149-
150- strategy :
151- matrix :
152- stdlib : [libstdc++, libc++]
153- include :
154- - stdlib : libstdc++
155- use_libcxx : Off
156- - stdlib : libc++
157- use_libcxx : On
158- fail-fast : false
159-
160- runs-on : ubuntu-22.04
161- if : ${{ github.repository_owner == 'danmar' }}
162-
163- env :
164- QT_VERSION : 6.8.1
165-
166- steps :
167- - uses : actions/checkout@v4
168- with :
169- persist-credentials : false
170-
171- - name : Install missing software
172- run : |
173- sudo apt-get update
174- sudo apt-get install -y cmake make libpcre3-dev
175- sudo apt-get install -y libcups2-dev # required for Qt6PrintSupport in CMake since Qt 6.7.3
176- sudo apt-get install -y libgl-dev # missing dependency for using Qt in CMake
177-
178- - name : Install clang
179- run : |
180- sudo apt-get purge --auto-remove llvm python3-lldb-14 llvm-14
181- wget https://apt.llvm.org/llvm.sh
182- chmod +x llvm.sh
183- sudo ./llvm.sh 19
184- sudo apt-get install -y clang-tools-19
185-
186- - name : Install libc++
187- if : matrix.stdlib == 'libc++'
188- run : |
189- sudo apt-get install -y libc++-19-dev
190-
191- - name : Install Qt ${{ env.QT_VERSION }}
192- uses : jurplel/install-qt-action@v4
193- with :
194- version : ${{ env.QT_VERSION }}
195- modules : ' qtcharts'
196- install-deps : false
197- cache : true
198-
199- - name : Prepare CMake
200- run : |
201- # TODO: why does it build dmake in the next step?
202- 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.use_libcxx }}
203- env :
204- CC : clang-19
205- CXX : clang++-19
206-
207- - name : Prepare CMake dependencies
208- run : |
209- # make sure the auto-generated GUI sources exist
210- make -C cmake.output autogen
211- # make sure the precompiled headers exist
212- #make -C cmake.output/cli cmake_pch.hxx.pch
213- #make -C cmake.output/gui cmake_pch.hxx.pch
214- #make -C cmake.output/lib cmake_pch.hxx.pch
215- #make -C cmake.output/test cmake_pch.hxx.pch
216- # make sure the auto-generated GUI dependencies exist
217- make -C cmake.output gui-build-deps
218-
219- - name : clang-include-cleaner
220- run : |
221- # TODO: run multi-threaded
222- 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
223-
224- - uses : actions/upload-artifact@v4
225- if : success() || failure()
226- with :
227- name : Compilation Database (clang-include-cleaner - ${{ matrix.stdlib }})
228- path : ./cmake.output/compile_commands.json
229-
230- - uses : actions/upload-artifact@v4
231- if : success() || failure()
232- with :
233- name : Logs (clang-include-cleaner - ${{ matrix.stdlib }})
234- path : ./*.log
0 commit comments