forked from stm32duino/Arduino_Core_STM32
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·79 lines (74 loc) · 2.02 KB
/
Continuous-Integration.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: STM32 Core Continuous Integration
on:
push:
branches:
- master
paths-ignore:
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- '!CI/build/arduino-cli.py'
- '!CI/build/platformio-builder.py'
- '!CI/build/examples/**'
- tools/**
- '!tools/platformio-build.py'
pull_request:
paths-ignore:
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- '!CI/build/arduino-cli.py'
- '!CI/build/platformio-builder.py'
- '!CI/build/examples/**'
- tools/**
- '!tools/platformio-build.py'
jobs:
astyle_check:
runs-on: ubuntu-latest
name: AStyle check
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@master
- name: Astyle check
id: Astyle
uses: stm32duino/actions/astyle-check@master
with:
astyle-definition: 'CI/astyle/.astylerc'
ignore-path-list: 'CI/astyle/.astyleignore'
# Use the output from the `Astyle` step
- name: Astyle Errors
if: failure()
run: |
cat ${{ steps.Astyle.outputs.astyle-result }}
exit 1
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@master
- name: Compilation
id: Compile
uses: stm32duino/actions/compile-examples@master
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
pio_build:
runs-on: ubuntu-latest
name: PlatformIO test
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@master
- name: PlatformIO
id: Compile
uses: ./.github/actions/pio-build