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
Add ability for libraries actions to report changes in memory usage introduced by a PR
Changes in the flash and dynamic memory for global variables usage of an example sketch are determined during the pull request build by the compile-examples action. The action displays the memory usage data in the log and also saves it to a JSON formatted file.
The actions/upload-artifact action may be used to create a workflow artifact containing the memory usage data files.
The newly added arduino/actions/libraries/report-size-deltas action may be used to provide a table summarizing the memory usage changes as a comment in the pull request thread.
Copy file name to clipboardExpand all lines: README.md
+33-3Lines changed: 33 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,40 @@ For 3rd party boards, also specify the Boards Manager URL:
20
20
21
21
List of library dependencies to install (space separated). Default `""`.
22
22
23
+
### `github-token`
24
+
25
+
GitHub access token used to get information from the GitHub API. Only needed if you're using the size report features with private repositories. It will be convenient to use [`${{ secrets.GITHUB_TOKEN }}`](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token). Default `""`.
26
+
27
+
### `size-report-sketch`
28
+
29
+
Name of the sketch used to compare memory usage change. Default `""`.
30
+
31
+
### `enable-size-deltas-report`
32
+
33
+
Set to `true` to cause the action to determine the change in memory usage for the [`size-reports-sketch`](#size-reports-sketch) between the pull request branch and the tip of the pull request's base branch. 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`.
34
+
35
+
### `size-deltas-report-folder-name`
36
+
37
+
Folder to save the JSON formatted memory usage change reports to. Should be used only to store reports. It will be created under [`GITHUB_WORKSPACE`](https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables). The folder will be created if it doesn't already exist. Default `"size-deltas-reports"`.
Storing the memory usage change report as a [workflow artifact](https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts):
Copy file name to clipboardExpand all lines: action.yml
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,26 @@ inputs:
10
10
libraries:
11
11
description: 'List of library dependencies to install (space separated)'
12
12
default: ''
13
+
github-token:
14
+
description: 'GitHub access token used to get information from the GitHub API. Only needed if you are using the size report features with private repositories.'
15
+
default: ''
16
+
size-report-sketch:
17
+
description: 'Name of the sketch used to compare memory usage change'
18
+
default: ''
19
+
enable-size-deltas-report:
20
+
description: 'Set to true to cause the action to determine the change in memory usage for the size-reports-sketch'
21
+
default: false
22
+
size-deltas-report-folder-name:
23
+
description: 'Folder to save the memory usage change report to'
if [[ "$ENABLE_SIZE_DELTAS_REPORT"=="true"&& ("$CORE" == "arduino:sam"||"$CORE" == "arduino:samd") ]];then
204
+
# arduino-cli doesn't report RAM usage for Arduino SAM Boards or Arduino SAMD Boards and doesn't include the data section in the flash usage report, so it's necessary to determine the sizes independently
0 commit comments