Builds examples with the STM32duino core.
Pattern to build one or more board(s). Default "" to build all boards defined for CI.
The version of arduino-cli to use. Default "latest".
List of library dependencies to install (comma separated). Default "".
Additional URL for the board manager. Default "https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json".
Pattern to build one or more example(s). Default "" to build all examples found.
JSON file containing the build configuration. Default "" to use default configuration.
File name of the Compile result.
Note
Available with compile-examples@v2
You can dynamically enable core repository usage by adding a /use-core-repo keyword in the PR description.
Optionally, you can specify a specific Arduino_Core_STM32 PR to test against by adding the PR number after the keyword.
Add /use-core-repo in the PR description to use the latest main branch:
/use-core-repo
Or specify a specific PR to test against:
/use-core-repo #1234
When the action runs, it will:
- Scan the PR description for the
/use-core-repokeyword - If
/use-core-repois found andadditional-urlis still the default URL (.../raw/main/...), switch to the dev index URL (.../raw/dev/...) for compatibility - If
/use-core-repois found andadditional-urlis custom (not default), keep the custom URL unchanged - If found with a PR number, clone the Arduino_Core_STM32 repository and checkout the specified PR
- If found without a PR number, clone and use the main branch
- Use that version instead of the released core package
Note
The last occurrence of the /use-core-repo keyword in the PR description takes precedence if multiple are present.
uses: stm32duino/actions/compile-examples@main
with:
board-pattern: 'NUCLEO_F103RB|NUCLEO_H743ZI'
cli-version: '0.18.0'
libraries: 'STM32duino LSM6DS0, STM32duino LSM6DS3, STM32duino LIS3MDL, STM32duino HTS221, STM32duino LPS25HB'
additional-url: 'https://github.com/stm32duino/BoardManagerFiles/raw/dev/package_stmicroelectronics_index.json'
example-pattern: '[Blink|Analog]'Tip
To use the core repository, add /use-core-repo in your PR description. To test against a specific PR, add /use-core-repo #1234.
- name: Compilation Errors
if: failure()
run: |
cat ${{ steps.Compile.outputs.compile-result }}
exit 1