Skip to content

Commit

Permalink
CI: remove version from .config compare
Browse files Browse the repository at this point in the history
version always will change.
unify the .config files by sorting, removing comments
and empty lines

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed Apr 16, 2024
1 parent e8dd338 commit 525d345
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/on-pr_publish_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,19 @@ jobs:
for cfg in ${configs}
do
echo "compare ${cfg}"
grep -v "CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION" old/${cfg} > old/${cfg}
grep -v "#" old/${cfg} > old/${cfg}
sort old/${cfg} > old/${cfg}
tr -s '\n' < old/${cfg} > old/${cfg}
grep -v "CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION" current/${cfg} > current/${cfg}
grep -v "#" current/${cfg} > current/${cfg}
sort current/${cfg} > current/${cfg}
tr -s '\n' < current/${cfg} > current/${cfg}
printf "\n\n%s\n%-75s|%s\n" "${cfg}" "old" "new" > tmp.md
diff --text --report-identical-files --suppress-common-lines --side-by-side --label old --label new <(sort old/${cfg}) <(sort current/${cfg}) >> tmp.md
diff --text --report-identical-files --suppress-common-lines --side-by-side --label old --label new old/${cfg} current/${cfg} >> tmp.md
if [ $? -eq 1 ]; then
cat tmp.md >> memory_usage.md
fi
Expand Down

0 comments on commit 525d345

Please sign in to comment.