Skip to content

Commit 5c2f7e5

Browse files
authored
CI: Limit clazy run to only changed cpp files
1 parent d595541 commit 5c2f7e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/sub_lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,11 @@ jobs:
735735
clazyNotes=0
736736
sudo apt-get install -y --no-install-recommends clazy
737737
#TODO: check where this "clazy.yaml" goes ; shall this be put in the fixes ?
738-
# Run clazy on all cpp files
739-
clazy-standalone --export-fixes=clazy.yaml -checks=${{ inputs.clazyChecks }} -p build/ ${{ inputs.changedCppFiles }} &>> ${{ env.logdir }}clazy.log || true
738+
# Run clazy on all changed cpp files
739+
for file in ${{ inputs.changedCppFiles }}
740+
do
741+
clazy-standalone --export-fixes=clazy.yaml -checks=${{ inputs.clazyChecks }} -p build/ ${{ inputs.changedCppFiles }} &>> ${{ env.logdir }}clazy.log || true
742+
done
740743
# If clazy has run successfully, write the Log to the console with the Problem Matchers
741744
if [ -f ${{ env.logdir }}clazy.log ]
742745
then

0 commit comments

Comments
 (0)