You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's necessary to clear the cache between each compilation to get a true compiler warning count,
otherwise only the first sketch compilation's warning count would reflect warnings from cached code.
However, deleting the cache means the code must be completely compiled every time. This increases
the duration of the compilations, so it should only be done when the compiler warnings count is wanted.
For this reason, it was necessary to add an input to control this behavior.
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,11 @@ GitHub access token used to get information from the GitHub API. Only needed for
118
118
119
119
### `enable-deltas-report`
120
120
121
-
Set to `true` to cause the action to determine the change in memory usage and compiler warnings of the compiled sketches. If the workflow is triggered by a `pull_request` event, the comparison is between the pull request branch and the tip of the pull request's base branch. If the workflow is triggered by a `push` event, the comparison is between the pushed commit and its immediate parent. This may be used with the [`arduino/actions/libraries/report-size-deltas` action](https://github.com/arduino/actions/tree/master/libraries/report-size-deltas). Default `false`.
121
+
Set to `true` to cause the action to determine the change in memory usage and compiler warnings of the compiled sketches. If the workflow is triggered by a `pull_request` event, the comparison is between the pull request branch and the tip of the pull request's base branch. If the workflow is triggered by a `push` event, the comparison is between the pushed commit and its immediate parent. The deltas will be displayed in the GitHub Actions build log. This may be used with the [`arduino/actions/libraries/report-size-deltas` action](https://github.com/arduino/actions/tree/master/libraries/report-size-deltas). Default `false`.
122
+
123
+
### `enable-warnings-report`
124
+
125
+
Set to `true` to cause the action to record the compiler warning count for each sketch compilation in the sketches report. Default `false`.
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,10 @@ inputs:
28
28
enable-deltas-report:
29
29
description: 'Set to true to cause the action to determine the change in memory usage and compiler warnings of the compiled sketches between the head and base refs of a PR and the immediate parent commit of a push'
30
30
default: false
31
+
enable-warnings-report:
32
+
description: 'Set to true to cause the action to record the compiler warning count for each sketch compilation in the sketches report'
0 commit comments