diff --git a/.github/workflows/include-what-you-use.yml b/.github/workflows/include-what-you-use.yml new file mode 100644 index 00000000000000..df9d34fc50427a --- /dev/null +++ b/.github/workflows/include-what-you-use.yml @@ -0,0 +1,35 @@ +name: include what you use Github action + +on: + push: + branches: + - main + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Set up environment + uses: actions/setup-python@v2 + env: + ACTIONS_STEP_DEBUG: true + + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: v2 + + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: include what you use + uses: EmilGedda/include-what-you-use-action@v1.0 + with: + compilation-database-path: '.' # Use default value or specify a valid path + output-format: 'iwyu' # Use default value or specify 'clang' or 'iwyu' + no-error: false # Use default value or specify true/false