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
Copy file name to clipboardExpand all lines: README.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# libraries/compile-examples action
2
2
3
-
This action compiles all of the examples contained in the library.
3
+
This action checks whether Arduino sketches compile and produces a report of data from the compilations.
4
4
5
5
## Inputs
6
6
7
7
### `cli-version`
8
8
9
-
The version of `arduino-cli` to use. Default `"latest"`.
9
+
The version of [Arduino CLI](https://github.com/arduino/arduino-cli) to use. Default `"latest"`.
10
10
11
11
### `fqbn`
12
12
@@ -20,13 +20,13 @@ For 3rd party boards, also specify the Boards Manager URL:
20
20
21
21
YAML-format list of platform dependencies to install.
22
22
23
-
Default `""`. If no `platforms` input is provided, the board's dependency will be automatically determined from the `fqbn` input and the latest version of that platform will be installed via Board Manager.
23
+
Default `""`. If no `platforms` input is provided, the board's dependency will be automatically determined from the `fqbn` input and the latest version of that platform will be installed via Boards Manager.
24
24
25
-
If a platform dependency from a non-Board Manager source of the same name as another Board Manager source platform dependency is defined, they will both be installed, with the non-Board Manager dependency overwriting the Board Manager platform installation. This permits testing against a non-release version of a platform while using Board Manager to install the platform's tools dependencies.
25
+
If a platform dependency from a non-Boards Manager source of the same name as another Boards Manager source platform dependency is defined, they will both be installed, with the non-Boards Manager dependency overwriting the Boards Manager platform installation. This permits testing against a non-release version of a platform while using Boards Manager to install the platform's tools dependencies.
26
26
Example:
27
27
```yaml
28
28
platforms: |
29
-
# Install the latest release of Arduino SAMD Boards and its toolchain via Board Manager
29
+
# Install the latest release of Arduino SAMD Boards and its toolchain via Boards Manager
30
30
- name: "arduino:samd"
31
31
# Install the platform from the root of the repository, replacing the BM installed platform
32
32
- source-path: "."
@@ -35,11 +35,12 @@ platforms: |
35
35
36
36
#### Sources:
37
37
38
-
##### Board Manager
38
+
##### Boards Manager
39
39
40
40
Keys:
41
41
- `name`- platform name in the form of `VENDOR:ARCHITECTURE`.
42
42
- `version`- version of the platform to install. Default is the latest version.
43
+
- `source-url`- Boards Manager URL of the platform. Default is Arduino's package index, which allows installation of all official platforms.
43
44
44
45
##### Local path
45
46
@@ -52,14 +53,14 @@ Keys:
52
53
Keys:
53
54
- `source-url`- URL to clone the repository from. It must start with `git://` or end with `.git`.
54
55
- `version`- [Git ref](https://git-scm.com/book/en/v2/Git-Internals-Git-References) of the repository to checkout. The special version name `latest` will cause the latest tag to be used. By default, the repository will be checked out to the tip of the default branch.
55
-
- `source-path`- path to install as a library. Paths are relative to the root of the repository. The default is to install from the root of the repository.
56
+
- `source-path`- path to install as a platform. Paths are relative to the root of the repository. The default is to install from the root of the repository.
56
57
- `name`- platform name in the form of `VENDOR:ARCHITECTURE`.
57
58
58
59
##### Archive download
59
60
60
61
Keys:
61
62
- `source-url`- download URL for the archive (e.g., `https://github.com/arduino/ArduinoCore-avr/archive/master.zip`).
62
-
- `source-path`- path to install as a library. Paths are relative to the root folder of the archive, or the root of the archive if it has no root folder. The default is to install from the root folder of the archive.
63
+
- `source-path`- path to install as a platform. Paths are relative to the root folder of the archive, or the root of the archive if it has no root folder. The default is to install from the root folder of the archive.
63
64
- `name`- platform name in the form of `VENDOR:ARCHITECTURE`.
64
65
65
66
### `libraries`
@@ -77,7 +78,7 @@ Note: the original space-separated list format is also supported. When this synt
77
78
##### Library Manager
78
79
79
80
Keys:
80
-
- `name`- name of the library, as defined in the `name` field of its [library.properties](https://arduino.github.io/arduino-cli/library-specification/#libraryproperties-file-format) metadata file. The library will be installed to a folder matching the name, but with any spaces replaced by `_`.
81
+
- `name`- name of the library, as defined in the `name` field of its [library.properties](https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format) metadata file. The library will be installed to a folder matching the name, but with any spaces replaced by `_`.
81
82
- `version`- version of the library to install. Default is the latest version.
82
83
83
84
##### Local path
@@ -111,11 +112,11 @@ Set to true to show verbose output in the log. Default `false`
111
112
112
113
### `sketches-report-path`
113
114
114
-
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"`.
115
+
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/actions/libraries/report-size-deltas` and `arduino/actions/libraries/report-size-trends` actions. Default `"size-deltas-reports"`.
115
116
116
117
### `github-token`
117
118
118
-
GitHub access token used to get information from the GitHub API. Only needed if you're using the sizereport 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 `""`.
119
+
GitHub access token used to get information from the GitHub API. Only needed for private repositories with `enable-size-deltas-report` set to `true`. 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 `""`.
0 commit comments