Skip to content

Commit

Permalink
Update include-what-you-use.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion authored Oct 6, 2024
1 parent 5b32a51 commit f86f36f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/include-what-you-use.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ jobs:
run: set -o pipefail; iwyu_tool -j 4 -p build -- -Xiwyu --no_default_mapping -Xiwyu --mapping_file=$PWD/include-what-you-use.imp | tee build/build-log.txt
- name: Apply include-what-you-use recommendations
run: fix_include --nosafe_headers --ignore_re '/lib/' < build/build-log.txt
- name: Check if any files were changed
run: git diff --quiet && echo "has_diff=true" || echo "has_diff=false" >> "$GITHUB_OUTPUT"
id: has_diff
- run: git diff > build/include-what-you-use-diff.txt
if: steps.has_diff.outputs.has_diff
- name: Upload the diff
if: steps.has_diff.outputs.has_diff
uses: actions/upload-artifact@v4
with:
name: include-what-you-use-diff
Expand Down

0 comments on commit f86f36f

Please sign in to comment.