-
Notifications
You must be signed in to change notification settings - Fork 960
51 lines (49 loc) · 1.27 KB
/
Arduino-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: STM32 Core build using arduino-cli
on:
push:
branches:
- main
paths-ignore:
- .github/**
- '!.github/workflows/Arduino-build.yml'
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- '!CI/build/arduino-cli.py'
- '!CI/build/examples/**'
- cmake/**
- tools/**
pull_request:
paths-ignore:
- .github/**
- '!.github/workflows/Arduino-build.yml'
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- '!CI/build/arduino-cli.py'
- '!CI/build/examples/**'
- cmake/**
- tools/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
core_build:
runs-on: ubuntu-latest
name: Core compilation
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@v4
- name: Compilation
id: Compile
uses: stm32duino/actions/compile-examples@v1
with:
additional-url: 'https://github.com/stm32duino/BoardManagerFiles/raw/dev/package_stmicroelectronics_index.json'
# Use the output from the `Compile` step
- name: Compilation Errors
if: failure()
run: |
cat ${{ steps.Compile.outputs.compile-result }}
exit 1