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
Allow installation of platform dependencies from local path
This change allows the action to be used for easy compilation testing of platforms.
The easiest way to install the platform's tools dependencies is via Board Manager. If the platform from the local path was also installed via Board Manager (as identified by them having the same name value, the Board Manager platform will be replaced by the one from the local path.
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,17 @@ YAML-format list of platform dependencies to install.
22
22
23
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.
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.
26
+
Example:
27
+
```yaml
28
+
platforms: |
29
+
# Install the latest release of Arduino SAMD Boards and its toolchain via Board Manager
30
+
- name: "arduino:samd"
31
+
# Install the platform from the root of the repository, replacing the BM installed platform
32
+
- source-path: "."
33
+
name: "arduino:samd"
34
+
```
35
+
25
36
#### Sources:
26
37
27
38
##### Board Manager
@@ -30,6 +41,12 @@ Keys:
30
41
- `name`- platform name in the form of `VENDOR:ARCHITECTURE`.
31
42
- `version`- version of the platform to install. Default is the latest version.
32
43
44
+
##### Local path
45
+
46
+
Keys:
47
+
- `source-path`- path to install as a platform. Relative paths are assumed to be relative to the root of the repository.
48
+
- `name`- platform name in the form of `VENDOR:ARCHITECTURE`.
49
+
33
50
### `libraries`
34
51
35
52
YAML-format list of library dependencies to install.
0 commit comments