Skip to content

Commit

Permalink
Add include-what-you-use check
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Oct 9, 2023
1 parent 90b395d commit 7f2c8ed
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: clazy
- name: clang-tidy
- name: coverage
- name: include-what-you-use
runs-on: ubuntu-22.04
name: ${{ matrix.name }}
steps:
Expand Down Expand Up @@ -110,6 +111,34 @@ jobs:
-DWAVPACK=ON \
..
working-directory: build
- name: Configure (include-what-you-use)
if: matrix.name == 'include-what-you-use'
run: |
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DWARNINGS_FATAL=ON \
-DOPTIMIZE=off \
-DBATTERY=ON \
-DBROADCAST=ON \
-DBULK=ON \
-DHID=ON \
-DLILV=ON \
-DOPUS=ON \
-DQTKEYCHAIN=ON \
-DVINYLCONTROL=ON \
-DFFMPEG=ON \
-DKEYFINDER=ON \
-DLOCALECOMPARE=ON \
-DMAD=ON \
-DMODPLUG=ON \
-DWAVPACK=ON \
-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE=include-what-you-use\
..
working-directory: build
env:
LD: clang++
CC: clang
CXX: clazy
- name: Set up problem matcher
uses: ammaraskar/[email protected]
- name: Build
Expand Down
1 change: 1 addition & 0 deletions tools/debian_buildenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ case "$1" in
fonts-open-sans \
fonts-ubuntu \
g++ \
iwyu \
lcov \
libbenchmark-dev \
libchromaprint-dev \
Expand Down

0 comments on commit 7f2c8ed

Please sign in to comment.