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: docs/compile-examples/description.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ specifications to auto-discover the available boards and examples available in t
17
17
18
18
The default auto-discovery matrix can be customized to consider exceptions via configuration YAML files.
19
19
20
-
It also supports the installation of the tools and source dependencies for multiple operating systems required to compile the sketches for the selected boards.
20
+
It also supports the installation of the tools and source dependencies for multiple operating systems, which are necessary for compiling the sketches for the selected boards.
Copy file name to clipboardExpand all lines: docs/compile-examples/getting-started.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,16 @@
3
3
Getting started
4
4
----------------
5
5
6
-
This section will guide your through the steps to setup the compile examples workflow in your repository.
6
+
This section will guide you through the steps to setup the compile examples workflow in your repository.
7
7
8
8
Prerequisites
9
9
^^^^^^^^^^^^^^
10
10
11
11
Before you start, make sure you satisfy the following prerequisites:
12
12
13
13
- Your Arduino asset (library or core) is hosted in a GitHub repository.
14
-
- GitHub Actions enabled in your repository. Check the `GitHub docs <https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#managing-github-actions-permissions-for-your-repository>`_ to learn how to enable it.
15
-
- If your asset is an Arduino core, first you need to `configure the repository <df>`_ to be able generate the core package with the ``core-packager.py`` tool.
14
+
- GitHub Actions is enabled in your repository. Check the `GitHub docs <https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#managing-github-actions-permissions-for-your-repository>`_ to learn how to enable it.
15
+
- If your asset is an Arduino core, first you need to `configure the repository <df>`_ to be able to generate the core package with the ``core-packager.py`` tool.
16
16
17
17
Enabling the reusable workflow
18
18
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -51,7 +51,7 @@ Now, you can go to the ``Actions`` tab of your repository in GitHub and see the
51
51
52
52
If your asset is an **Arduino core**, the workflow will compile all the available examples from the built-in libraries against each of the boards in the `board.txt <https://docs.arduino.cc/arduino-cli/platform-specification/#boardstxt>`_ file.
53
53
54
-
In the case of **Arduino libraries**, the workflow will to compile all the examples available in the ``examples`` directory for the default set of boards defined
54
+
In the case of **Arduino libraries**, the workflow will compile all the examples available in the ``examples`` directory for the default set of boards defined
55
55
in the file: `config/ci-config-matrix-ifx-lib.yml <https://github.com/Infineon/arduino-devops/blob/main/config/ci-config-matrix-ifx-lib.yml>`_.
When calling the tool, it will consider the current path the root path of the Arduino asset.
27
-
Otherwise, you will need to specify the root path of the asset by using the flag ``-r``, ``--root-path`` followed by the path to the root of the asset:
26
+
The script needs to know the root path of the asset to be able to discover the boards and examples.
27
+
Unless specified, the root path will be the current working directory from which the script is executed.
28
+
Otherwise, you will need to specify the root path of the asset by using the flag ``-r``, ``--root-path`` followed by the path to the asset's root directory:
28
29
29
30
.. code:: bash
30
31
@@ -42,7 +43,7 @@ config
42
43
Shows and queries the ci configuration matrix. This command is helpful within CI/CD workflows in the creation of parallel jobs
43
44
for the compilation of the sketches and boards matrix.
44
45
45
-
It support the following output formats:
46
+
It supports the following output formats:
46
47
47
48
- JSON (``--json`` or ``--json-pretty``)
48
49
- YAML (``--yaml``) .
@@ -113,7 +114,7 @@ Or we can compile all the relevant sketches for a given board by using the ``--f
113
114
core-install
114
115
------------
115
116
116
-
In case of Arduino libraries, before being able to compile the matrix, you will need to have the package cores of each of the matrix boards installed.
117
+
To compile the matrix for Arduino libraries, you must first install the package cores for each board in the matrix.
117
118
118
119
The following command will take care of the installation of all the required package cores:
119
120
@@ -215,7 +216,7 @@ The yaml file uses the following keys:
215
216
and these particular values are "not discoverable".
216
217
217
218
The allowed keys are ``fqbn`` and ``sketch``.
218
-
The value formats allowed are the same as the root node keys.
219
+
The value formats allowed are the same as the root `node <https://yaml.org/spec/1.2.2/#nodes>`_ keys (``fqbn`` and ``sketch`` as primary keys in the YAML file).
219
220
But in this case, the value can be a list (of scalars) or a scalar.
220
221
221
222
Example:
@@ -246,12 +247,12 @@ The yaml file uses the following keys:
246
247
247
248
- Single keys:
248
249
A dictionary with either ``fqbn`` or ``sketch`` key. The
249
-
values will them be then (if present) removed from the default matrix key.
250
+
values will be (if present) removed from the default matrix key.
250
251
This is mainly useful when the main matrix is automatically discovered,
251
-
and a one particular value is not (momentarily?) compatible for some reason.
252
+
and a particular value is not compatible for some reason.
252
253
253
254
The allowed keys are ``fqbn`` and ``sketch``.
254
-
The value formats allowed are the same as the root node keys.
255
+
The value formats allowed are the same as the root `node <https://yaml.org/spec/1.2.2/#nodes>`_ keys (``fqbn`` and ``sketch`` as primary keys in the YAML file).
255
256
But in this case, the value can be a list (of scalars) or a scalar.
0 commit comments