Skip to content

Commit

Permalink
CI: Add IWYU (include what you use) action.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Oct 19, 2024
1 parent 92adfd7 commit f5119b5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,35 @@ jobs:
set -eux
pwd
[[ "$(cat ./rnp/version.txt)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]];
iwyu:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install cmake libjson-c-dev libbotan-2-dev asciidoctor googletest
- name: Configure
run: |
echo CORES="$(nproc --all)" >> $GITHUB_ENV
cmake -B build -DBUILD_SHARED_LIBS=ON \
-DCRYPTO_BACKEND=botan \
-DDOWNLOAD_GTEST=OFF \
-DGTEST_SOURCES=/usr/src/googletest \
-DCMAKE_BUILD_TYPE=Release .
- name: Build and cwd
run: |
cmake --build build --parallel 2
cd build
- name: Run Include What You Use
uses: EmilGedda/include-what-you-use-action@v1.0
with:
compilation-database-path: 'build'

0 comments on commit f5119b5

Please sign in to comment.