Skip to content

Commit caf6976

Browse files
authored
Merge pull request #68 from per1234/fix-compile-examples-readme
libraries/compile-examples: fix errors in readme
2 parents 882d768 + 0c2454c commit caf6976

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# libraries/compile-examples action
22

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.
44

55
## Inputs
66

77
### `cli-version`
88

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"`.
1010

1111
### `fqbn`
1212

@@ -20,13 +20,13 @@ For 3rd party boards, also specify the Boards Manager URL:
2020

2121
YAML-format list of platform dependencies to install.
2222

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.
2424

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.
2626
Example:
2727
```yaml
2828
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
3030
- name: "arduino:samd"
3131
# Install the platform from the root of the repository, replacing the BM installed platform
3232
- source-path: "."
@@ -35,11 +35,12 @@ platforms: |
3535

3636
#### Sources:
3737

38-
##### Board Manager
38+
##### Boards Manager
3939

4040
Keys:
4141
- `name` - platform name in the form of `VENDOR:ARCHITECTURE`.
4242
- `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.
4344

4445
##### Local path
4546

@@ -52,14 +53,14 @@ Keys:
5253
Keys:
5354
- `source-url` - URL to clone the repository from. It must start with `git://` or end with `.git`.
5455
- `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.
5657
- `name` - platform name in the form of `VENDOR:ARCHITECTURE`.
5758

5859
##### Archive download
5960

6061
Keys:
6162
- `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.
6364
- `name` - platform name in the form of `VENDOR:ARCHITECTURE`.
6465

6566
### `libraries`
@@ -77,7 +78,7 @@ Note: the original space-separated list format is also supported. When this synt
7778
##### Library Manager
7879

7980
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 `_`.
8182
- `version` - version of the library to install. Default is the latest version.
8283

8384
##### Local path
@@ -111,11 +112,11 @@ Set to true to show verbose output in the log. Default `false`
111112

112113
### `sketches-report-path`
113114

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"`.
115116

116117
### `github-token`
117118

118-
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 `""`.
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 `""`.
119120

120121
### `enable-size-deltas-report`
121122

0 commit comments

Comments
 (0)