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
This makes maintenance of the compile-examples action a little easier and also makes the documentation more friendly to the users who don't have the need for the size trends report feature.
Copy file name to clipboardExpand all lines: README.md
+4-69Lines changed: 4 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,10 +107,6 @@ List of paths containing sketches to compile. These paths will be searched recur
107
107
108
108
Set to true to show verbose output in the log. Default `false`
109
109
110
-
### `github-token`
111
-
112
-
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 `""`.
113
-
114
110
### `size-report-sketch`
115
111
116
112
Name of the sketch used to compare memory usage change. Default `""`.
@@ -119,65 +115,14 @@ Name of the sketch used to compare memory usage change. Default `""`.
119
115
120
116
Path in which to save a JSON formatted file containing data from the sketch compilations. Should be used only to store reports. Relative paths are relative to [`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. This report is used by the `arduino/libraries/report-size-deltas` and `arduino/libraries/report-size-trends` actions. Default `"size-deltas-reports"`.
121
117
118
+
### `github-token`
119
+
120
+
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 `""`.
121
+
122
122
### `enable-size-deltas-report`
123
123
124
124
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`.
125
125
126
-
### `enable-size-trends-report`
127
-
128
-
Set to `true` to cause the action to record the memory usage of [`size-reports-sketch`](#size-reports-sketch) to a Google Sheets spreadsheet on every push to the repository's default branch. Default `false`.
129
-
130
-
### `keyfile`
131
-
132
-
Contents of the Google key file used to update the size trends report Google Sheets spreadsheet. This should be defined using a [GitHub secret](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets). Default `""`.
133
-
1. Open https://console.developers.google.com/project
134
-
1. Click the "Create Project" button.
135
-
1. In the "Project name" field, enter the name you want for your project.
136
-
1. You don't need to select anything from the "Location" menu.
137
-
1. Click the button with the three horizontal lines at the top left corner of the window.
138
-
1. Hover the mouse pointer over "APIs & Services".
139
-
1. Click "Library".
140
-
1. Make sure the name of the project you created is selected from the dropdown menu at the top of the window.
141
-
1. Click 'Google Sheets API".
142
-
1. Click the "Enable" button.
143
-
1. Click the "Create Credentials" button.
144
-
1. From the "Which API are you using?" menu, select "Google Sheets API".
145
-
1. From the "Where will you be calling the API from?" menu, select "Other non-UI".
146
-
1. From the "What data will you be accessing?" options, select "Application data".
147
-
1. From the "Are you planning to use this API with App Engine or Compute Engine?" options, select "No, I’m not using them".
148
-
1. Click the "What credentials do I need?" button.
149
-
1. In the "Service account name" field, enter the name you want to use for the service account.
150
-
1. From the "Role" menu, select "Project > Editor".
151
-
1. From the "Key type" options, select "JSON".
152
-
1. Click the "Continue" button. The .json file containing your private key will be downloaded. Save this somewhere safe.
153
-
1. Open the downloaded file.
154
-
1. Copy the entire contents of the file to the clipboard.
155
-
1. Open the GitHub page of the repository you are configuring the GitHub Actions workflow for.
156
-
1. Click the "Settings" tab.
157
-
1. From the menu on the left side of the window, click "Secrets".
158
-
1. Click the "Add a new secret" link.
159
-
1. In the "Name" field, enter the variable name you want to use for your secret. This will be used for the `size-trends-report-key-file` argument of the `compile-examples` action in your workflow configuration file. For example, if you named the secret `GOOGLE_KEY_FILE`, you would reference it in your workflow configuration as `${{ secrets.GOOGLE_KEY_FILE }}`.
160
-
1. In the "Value" field, paste the contents of the key file.
161
-
1. Click the "Add secret" button.
162
-
1. Open the downloaded key file again.
163
-
1. Copy the email address shown in the `client_email` field.
164
-
1. Open Google Sheets: https://docs.google.com/spreadsheets
165
-
1. Under "Start a new spreadsheet", click "Blank".
166
-
1. Click the "Share" button at the top right corner of the window.
167
-
1. If you haven't already, give your spreadsheet a name.
168
-
1. Paste the `client_email` email address into the "Enter names or email addresses..." field.
169
-
1. Uncheck the box next to "Notify people".
170
-
1. Click the "OK" button.
171
-
1. In the "Skip sending invitations?" dialog, click the "OK" button.
172
-
173
-
### `size-trends-report-spreadsheet-id`
174
-
175
-
The ID of the Google Sheets spreadsheet to write the memory usage trends data to. The URL of your spreadsheet will look something like `https://docs.google.com/spreadsheets/d/15WOp3vp-6AnTnWlNWaNWNl61Fe_j8UJhIKE0rVdV-7U/edit#gid=0`. In this example, the spreadsheet ID is `15WOp3vp-6AnTnWlNWaNWNl61Fe_j8UJhIKE0rVdV-7U`. Default `""`.
176
-
177
-
### `size-trends-report-sheet-name`
178
-
179
-
The sheet name in the Google Sheets spreadsheet used for the memory usage trends report. Default `"Sheet1"`.
180
-
181
126
## Example usage
182
127
183
128
Only compiling examples:
@@ -203,13 +148,3 @@ Storing the memory usage change report as a [workflow artifact](https://help.git
203
148
name: size-deltas-reports
204
149
path: size-delta-reports
205
150
```
206
-
207
-
Publishing memory usage trends data to a Google Sheets spreadsheet:
Copy file name to clipboardExpand all lines: action.yml
+3-15Lines changed: 3 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -19,30 +19,18 @@ inputs:
19
19
verbose:
20
20
description: 'Set to true to show verbose output in the log'
21
21
default: false
22
-
github-token:
23
-
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.'
24
-
default: ''
25
22
size-report-sketch:
26
23
description: 'Name of the sketch used to compare memory usage change'
27
24
default: ''
28
25
sketches-report-path:
29
26
description: 'Path in which to save a JSON formatted file containing data from the sketch compilations'
30
27
default: 'size-deltas-reports'
28
+
github-token:
29
+
description: 'GitHub access token used to get information from the GitHub API. Only needed if you are using the size deltas report feature with a private repository.'
30
+
default: ''
31
31
enable-size-deltas-report:
32
32
description: 'Set to true to cause the action to determine the change in memory usage for the size-reports-sketch'
33
33
default: false
34
-
enable-size-trends-report:
35
-
description: 'Set to true to cause the action to record the memory usage of size-reports-sketch'
36
-
default: false
37
-
keyfile:
38
-
description: 'Google key file used to update the size trends report Google Sheets spreadsheet.'
39
-
default: ''
40
-
size-trends-report-spreadsheet-id:
41
-
description: 'The ID of the Google Sheets spreadsheet to write the memory usage trends data to'
42
-
default: ''
43
-
size-trends-report-sheet-name:
44
-
description: 'The sheet name in the Google Sheets spreadsheet used for the memory usage trends report'
0 commit comments