Skip to content

Commit

Permalink
♻ CI: enable iwyu
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Oct 26, 2023
1 parent 2c3bb54 commit 75d2c28
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75d2c28

Please sign in to comment.