forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 18
157 lines (135 loc) · 4.75 KB
/
greentea_cmake.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: Test that Mbed and Greentea tests compile for each MCU family.
on: [pull_request]
jobs:
build-greentea-cmake:
runs-on: ubuntu-latest
container: ghcr.io/armmbed/mbed-os-env:master-latest
strategy:
matrix:
include:
## For this matrix, we choose one target from each MCU target family that Mbed supports.
## The target families can be seen here:
## https://mbed-ce.github.io/mbed-ce-test-tools/targets/index.html
## Generally we want to get the most feature-filled MCU of each type so that as much stuff
## compiles as possible -- e.g. prefer a board with ethernet to one without so that we
## can compile the netsocket tests.
# NXP MCUs
- target: LPC1768
baremetal: 0
# - target: LPC546XX
# baremetal: 0
# - target: MIMXRT1060_EVK
# baremetal: 0
# - target: MIMXRT1170_EVK
# baremetal: 0
# # Freescale MCUs
# - target: K64F
# baremetal: 0
# - target: KL43Z
# baremetal: 0
# - target: KW41Z
# baremetal: 0
# # STM32 MCUs
# - target: NUCLEO_F091RC
# baremetal: 0
# - target: NUCLEO_F103RB
# baremetal: 1
# - target: NUCLEO_F207ZG
# baremetal: 0
# - target: NUCLEO_F303RE
# baremetal: 0
# - target: NUCLEO_F429ZI
# baremetal: 0
# - target: NUCLEO_F767ZI
# baremetal: 0
# - target: NUCLEO_G031K8
# baremetal: 1
# - target: NUCLEO_G431RB
# baremetal: 0
# - target: NUCLEO_H563ZI
# baremetal: 0
# - target: NUCLEO_H745ZI_Q_CM7
# baremetal: 0
# - target: DISCO_L072CZ_LRWAN1
# baremetal: 1
# - target: XDOT_L151CC
# baremetal: 0
# - target: DISCO_L4R9I
# baremetal: 0
# - target: DISCO_L562QE
# baremetal: 0
# - target: B_U585I_IOT02A
# baremetal: 0
# - target: NUCLEO_WB55RG
# baremetal: 0
# - target: NUCLEO_WL55JC
# baremetal: 0
# # Maxim MCUs
# - target: MAX32625MBED
# baremetal: 0
# - target: XDOT_MAX32670
# baremetal: 0
# # Nuvoton MCUs
# - target: NUMAKER_PFM_NANO130
# baremetal: 1
# - target: NUMAKER_PFM_M487
# baremetal: 0
# - target: NU_M2354
# baremetal: 0
# # Samsung MCUs
# - target: S1SBP6A
# baremetal: 0
# # nRF MCUs
# - target: NRF52840_DK
# baremetal: 0
# - target: ARDUINO_NICLA_SENSE_ME
# baremetal: 0
# # Toshiba MCUs
# - target: TMPM4NR
# baremetal: 0
# # Renesas MCUs
# - target: GR_MANGO
# baremetal: 0
# - target: RZ_A1H
# baremetal: 0
# # Ambiq MCUs
# - target: SFE_ARTEMIS_DK
# baremetal: 0
# # Infineon/Cypress MCUs
# - target: CY8CKIT_062S2_43012
# baremetal: 0
# - target: CYTFM_064B0S2_4343W
# baremetal: 0
# # Analog Devices MCUs
# - target: EV_COG_AD4050LZ
# baremetal: 0
# # GigaDevices MCUs
# - target: GD32_F307VG
# baremetal: 0
# - target: GD32_F450ZI
# baremetal: 0
# # SiLabs MCUs
# - target: EFM32GG11_STK3701
# baremetal: 0
# # Raspberry Pi MCUs
# - target: RASPBERRY_PI_PICO
# baremetal: 0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python3-venv
run: |
apt-get update
apt-get install -y python3-venv
- name: Build ${{ matrix.target }} with baremetal profile
if: ${{ maxtrix.baremetal == 1 }}
run: |
rm -rf __build
cmake -S . -B __build -GNinja -DCMAKE_CTEST_ARGUMENTS="--output-on-failure;-V" -DMBED_BUILD_GREENTEA_TESTS=ON -DMBED_GREENTEA_TEST_BAREMETAL=ON -DMBED_GREENTEA_SERIAL_PORT=/dev/ttyDUMMY -DMBED_TARGET=${{ matrix.target }} -DMBED_APP_JSON_PATH=TESTS/configs/baremetal.json
cmake --build __build
- name: Build ${{ matrix.target }} with full profile
if: ${{ maxtrix.baremetal == 0 }}
run: |
rm -rf __build
cmake -S . -B __build -GNinja -DCMAKE_CTEST_ARGUMENTS="--output-on-failure;-V" -DMBED_BUILD_GREENTEA_TESTS=ON -DMBED_GREENTEA_SERIAL_PORT=/dev/ttyDUMMY -DMBED_TARGET=${{ matrix.target }}
cmake --build __build