-
Notifications
You must be signed in to change notification settings - Fork 28
129 lines (122 loc) · 3.79 KB
/
tests.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: Generate
on:
schedule:
- cron: '23 7 * * *'
pull_request:
workflow_dispatch:
env:
MAKEFLAGS: -j4
jobs:
group-1:
name: "STM32: F4, G4, L0, H5"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser
- name: Generate STM32 data
run: |
cd tools/generator
make generate-stm32f4 generate-stm32g4 generate-stm32l0 generate-stm32h5
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))
group-2:
name: "STM32: C0, G0, U0, H7, L4"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser
- name: Generate STM32 data
run: |
cd tools/generator
make generate-stm32c0 generate-stm32g0 generate-stm32u0 generate-stm32h7 generate-stm32l4
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))
group-3:
name: "STM32: F0, F1, F2, F3, F7, L1, L5, WB, WL, U5"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser
- name: Generate STM32 data
run: |
cd tools/generator
make generate-stm32f0 generate-stm32f1 generate-stm32f2 generate-stm32f3 \
generate-stm32f7 generate-stm32l1 generate-stm32wb generate-stm32wl \
generate-stm32u5 generate-stm32l5
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))
group-4:
name: "AVR, SAM, NRF, RP"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser packaging
- name: Run Unit Tests
run: |
make test
- name: Generate AVR data
run: |
cd tools/generator
make generate-avr
- name: Generate SAM data
run: |
cd tools/generator
make generate-sam
- name: Generate NRF data
run: |
cd tools/generator
make generate-nrf
- name: Generate RP data
run: |
cd tools/generator
make generate-rp
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))