From 75d2c285b2efdeb8bc81307aa49c912e56177901 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Fri, 27 Oct 2023 00:33:37 +0400 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20=20CI:=20enable=20iwyu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/checks.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 9bf3b41..f5848b4 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -24,7 +24,7 @@ jobs: - name: install deps run: | - pacman -Syu --noconfirm cmake pkg-config ninja clang mold llvm libc++ qt5-base qt5-tools polkit-qt5 python git + pacman -Syu --noconfirm cmake pkg-config ninja clang mold llvm libc++ qt5-base qt5-tools polkit-qt5 python include-what-you-use git shell: bash - name: Configure CMake @@ -44,6 +44,18 @@ jobs: clang-tidy -p ${{github.workspace}}/build/Debug src/*.cpp shell: bash + - name: Run iwyu + run: | + export AR=llvm-ar + export CC=clang + export CXX=clang++ + export NM=llvm-nm + export RANLIB=llvm-ranlib + + cmake -B ${{github.workspace}}/build-iwyu -DCMAKE_BUILD_TYPE=Debug -DENABLE_INCLUDE_WHAT_YOU_USE=ON + cmake --build ${{github.workspace}}/build-iwyu + shell: bash + check_clang_format: name: "Check C++ style" runs-on: ubuntu-latest