Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 25, 2024
1 parent 9c978c6 commit 7fcafeb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/clazy/clazy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,14 @@ echo "$output" | grep -E "$pattern" | while IFS= read -r line; do
fi
done

warnings_count=$(<"$warnings_file")
errors_count=$(<"$errors_file")

echo "Debug: warnings count is $warnings_count" >> /tmp/clazy-debug.log
echo "Debug: errors count is $errors_count" >> /tmp/clazy-debug.log
echo "Debug: GITHUB_OUTPUT is $GITHUB_OUTPUT" >> /tmp/clazy-debug.log
echo "Writing to outputs file..."
echo "errors-count=$errors_count" >> $GITHUB_OUTPUT
echo "warnings-count=$warnings_count" >> $GITHUB_OUTPUT
echo "Debug: Content of GITHUB_OUTPUT:" >> /tmp/clazy-debug.log
cat $GITHUB_OUTPUT >> /tmp/clazy-debug.log

if [ "$IGNORE_HEADERS" == "true" ] && [ -n "$DATABASE" ]; then
mv $DATABASE/compile_commands_backup.json $DATABASE/compile_commands.json
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/clazy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ jobs:
install-stable: true
database: build

- name: Check debug output
run: |
echo "Debug log contents:"
cat /tmp/clazy-debug.log
echo "GITHUB_OUTPUT contents:"
cat $GITHUB_OUTPUT
- name: Check clazy output
run: |
echo "Full environment:"
Expand Down

0 comments on commit 7fcafeb

Please sign in to comment.