Skip to content

Commit 1a15da5

Browse files
committed
iwyu.yml: run include-what-you-use on cfg test files
1 parent e5076f5 commit 1a15da5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/iwyu.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
dnf install -y libglvnd-devel # fixes missing dependency for Qt in CMake
6969
dnf install -y p7zip-plugins # required as fallback for py7zr in Qt installation
7070
dnf install -y cups-devel # required for Qt6PrintSupport in CMake since Qt 6.7.3
71+
dnf install -y cairo-devel gtk3-devel libcurl-devel lua-devel openssl-devel python3-devel sqlite-devel boost-devel cppunit-devel libsigc++20-devel # for strict cfg checks
7172
dnf install -y iwyu
7273
ln -s iwyu_tool.py /usr/bin/iwyu_tool
7374
@@ -125,6 +126,14 @@ jobs:
125126
# TODO: remove -stdlib= - it should have been taken from the compilation database
126127
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments -stdlib=${{ matrix.stdlib }} > iwyu.log
127128
129+
- name: test/cfg
130+
if: matrix.stdlib == 'libstdc++'
131+
run: |
132+
# TODO: redirect to log
133+
./test/cfg/runtests.sh
134+
env:
135+
IWYU: include-what-you-use
136+
128137
- uses: actions/upload-artifact@v4
129138
if: success() || failure()
130139
with:

0 commit comments

Comments
 (0)