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
## How can I install dependencies of a boards platform?
4
+
5
+
### Managed Dependencies
6
+
7
+
The Arduino **Boards Manager** system installs tool dependencies along with a platform. When you specify a [**Boards Manager**-sourced platform dependency](../README.md#boards-manager) via the action's [`platforms` input](../README.md#platforms) the managed platform dependencies are installed automatically.
8
+
9
+
If an alternative [platform dependency source](../README.md#supported-platform-sources) is used this automatic tool dependency installation does not occur. The convenient way to install the tool dependencies in this case is to install a **Boards Manager**-sourced platform that has a dependency on the required tools in addition to the target platform from the alternative source.
10
+
11
+
---
12
+
13
+
**Example:**
14
+
15
+
```yaml
16
+
- uses: arduino/compile-sketches@v1
17
+
with:
18
+
platforms: |
19
+
# Use Boards Manager to install the latest release of the platform to get the toolchain.
20
+
- name: arduino:avr
21
+
# Overwrite the Boards Manager installation with the development version of the platform.
Arduino boards platforms typically bundle all dependencies. However, there are some platforms that require the user to manually install dependencies on their system in order to use the platform.
31
+
32
+
The **arduino/compile-sketches** action runs in the same environment as the rest of the steps of the [workflow job](https://docs.github.com/actions/using-jobs/using-jobs-in-a-workflow), which means you can simply perform the dependency installation in a prior [step](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idsteps) of the job.
0 commit comments