Skip to content

Commit 4efe202

Browse files
committed
iwyu.yml: run include-what-you-use on cfg test files
1 parent b1a3555 commit 4efe202

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
@@ -71,6 +71,7 @@ jobs:
7171
dnf install -y libglvnd-devel # fixes missing dependency for Qt in CMake
7272
dnf install -y p7zip-plugins # required as fallback for py7zr in Qt installation
7373
dnf install -y cups-devel # required for Qt6PrintSupport in CMake since Qt 6.7.3
74+
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
7475
dnf install -y iwyu
7576
ln -s iwyu_tool.py /usr/bin/iwyu_tool
7677
@@ -128,6 +129,14 @@ jobs:
128129
# TODO: remove -stdlib= - it should have been taken from the compilation database
129130
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
130131
132+
- name: test/cfg
133+
if: matrix.stdlib == 'libstdc++'
134+
run: |
135+
# TODO: redirect to log
136+
./test/cfg/runtests.sh
137+
env:
138+
IWYU: include-what-you-use
139+
131140
- uses: actions/upload-artifact@v4
132141
if: success() || failure()
133142
with:

0 commit comments

Comments
 (0)