Skip to content

Commit 5ceea51

Browse files
committed
iwyu.yml: run include-what-you-use on cfg test files
1 parent 21d300d commit 5ceea51

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
@@ -79,6 +79,7 @@ jobs:
7979
dnf install -y p7zip-plugins # required as fallback for py7zr in Qt installation
8080
dnf install -y python3-pip # fixes missing pip module in jurplel/install-qt-action
8181
dnf install -y python3-devel # fixes building of wheels for jurplel/install-qt-action
82+
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
8283
dnf install -y iwyu
8384
ln -s iwyu_tool.py /usr/bin/iwyu_tool
8485
@@ -150,6 +151,14 @@ jobs:
150151
# TODO: remove -stdlib= - it should have been taken from the compilation database
151152
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 }} ${{ matrix.mapping_file_opt }} ${{ matrix.clang_inc }} > iwyu.log
152153
154+
- name: test/cfg
155+
if: matrix.stdlib == 'libstdc++'
156+
run: |
157+
# TODO: redirect to log
158+
./test/cfg/runtests.sh
159+
env:
160+
IWYU: include-what-you-use
161+
153162
- uses: actions/upload-artifact@v4
154163
if: success() || failure()
155164
with:

0 commit comments

Comments
 (0)