Skip to content

Commit e5d6382

Browse files
Build all target families in a CI job
1 parent cfee81c commit e5d6382

File tree

1 file changed

+134
-6
lines changed

1 file changed

+134
-6
lines changed
Lines changed: 134 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,137 @@
1-
name: test building greentea tests with cmake
2-
1+
name: Test that Mbed and Greentea tests compile for each MCU family.
32
on: [pull_request]
43

54
jobs:
65
build-greentea-cmake:
76
runs-on: ubuntu-latest
87
container: ghcr.io/armmbed/mbed-os-env:master-latest
8+
9+
strategy:
10+
matrix:
11+
include:
12+
## For this matrix, we choose one target from each MCU target family that Mbed supports.
13+
## The target families can be seen here:
14+
## https://mbed-ce.github.io/mbed-ce-test-tools/targets/index.html
15+
## Generally we want to get the most feature-filled MCU of each type so that as much stuff
16+
## compiles as possible -- e.g. prefer a board with ethernet to one without so that we
17+
## can compile the netsocket tests.
18+
19+
# NXP MCUs
20+
- target: LPC1768
21+
baremetal: 0
22+
# - target: LPC546XX
23+
# baremetal: 0
24+
# - target: MIMXRT1060_EVK
25+
# baremetal: 0
26+
# - target: MIMXRT1170_EVK
27+
# baremetal: 0
28+
29+
# # Freescale MCUs
30+
- target: K64F
31+
baremetal: 0
32+
# - target: KL43Z
33+
# baremetal: 0
34+
# - target: KW41Z
35+
# baremetal: 0
36+
37+
# # STM32 MCUs
38+
# - target: NUCLEO_F091RC
39+
# baremetal: 0
40+
# - target: NUCLEO_F103RB
41+
# baremetal: 1
42+
# - target: NUCLEO_F207ZG
43+
# baremetal: 0
44+
# - target: NUCLEO_F303RE
45+
# baremetal: 0
46+
# - target: NUCLEO_F429ZI
47+
# baremetal: 0
48+
# - target: NUCLEO_F767ZI
49+
# baremetal: 0
50+
# - target: NUCLEO_G031K8
51+
# baremetal: 1
52+
# - target: NUCLEO_G431RB
53+
# baremetal: 0
54+
# - target: NUCLEO_H563ZI
55+
# baremetal: 0
56+
# - target: NUCLEO_H745ZI_Q_CM7
57+
# baremetal: 0
58+
# - target: DISCO_L072CZ_LRWAN1
59+
# baremetal: 1
60+
# - target: XDOT_L151CC
61+
# baremetal: 0
62+
# - target: DISCO_L4R9I
63+
# baremetal: 0
64+
# - target: DISCO_L562QE
65+
# baremetal: 0
66+
# - target: B_U585I_IOT02A
67+
# baremetal: 0
68+
# - target: NUCLEO_WB55RG
69+
# baremetal: 0
70+
# - target: NUCLEO_WL55JC
71+
# baremetal: 0
72+
73+
# # Maxim MCUs
74+
- target: MAX32625MBED
75+
baremetal: 0
76+
# - target: XDOT_MAX32670
77+
# baremetal: 0
78+
79+
# # Nuvoton MCUs
80+
# - target: NUMAKER_PFM_NANO130
81+
# baremetal: 1
82+
# - target: NUMAKER_PFM_M487
83+
# baremetal: 0
84+
# - target: NU_M2354
85+
# baremetal: 0
86+
87+
# # Samsung MCUs
88+
# - target: S1SBP6A
89+
# baremetal: 0
90+
91+
# # nRF MCUs
92+
# - target: NRF52840_DK
93+
# baremetal: 0
94+
# - target: ARDUINO_NICLA_SENSE_ME
95+
# baremetal: 0
96+
97+
# # Toshiba MCUs
98+
# - target: TMPM4NR
99+
# baremetal: 0
100+
101+
# # Renesas MCUs
102+
# - target: GR_MANGO
103+
# baremetal: 0
104+
# - target: RZ_A1H
105+
# baremetal: 0
106+
107+
# # Ambiq MCUs
108+
# - target: SFE_ARTEMIS_DK
109+
# baremetal: 0
110+
111+
# # Infineon/Cypress MCUs
112+
# - target: CY8CKIT_062S2_43012
113+
# baremetal: 0
114+
# - target: CYTFM_064B0S2_4343W
115+
# baremetal: 0
116+
117+
# # Analog Devices MCUs
118+
# - target: EV_COG_AD4050LZ
119+
# baremetal: 0
120+
121+
# # GigaDevices MCUs
122+
# - target: GD32_F307VG
123+
# baremetal: 0
124+
# - target: GD32_F450ZI
125+
# baremetal: 0
126+
127+
# # SiLabs MCUs
128+
# - target: EFM32GG11_STK3701
129+
# baremetal: 0
130+
131+
# # Raspberry Pi MCUs
132+
# - target: RASPBERRY_PI_PICO
133+
# baremetal: 0
134+
9135
steps:
10136
- name: Checkout
11137
uses: actions/checkout@v3
@@ -15,14 +141,16 @@ jobs:
15141
apt-get update
16142
apt-get install -y python3-venv
17143
18-
- name: Build NUCLEO_G031K8 with baremetal profile
144+
- name: Build ${{ matrix.target }} with baremetal profile
145+
#if: ${{ maxtrix.baremetal == 1 }}
19146
run: |
20147
rm -rf __build
21-
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=NUCLEO_G031K8 -DMBED_APP_JSON_PATH=TESTS/configs/baremetal.json
148+
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
22149
cmake --build __build
23150
24-
- name: Build ARM_MUSCA_S1 with full profile
151+
- name: Build ${{ matrix.target }} with full profile
152+
#if: ${{ maxtrix.baremetal == 0 }}
25153
run: |
26154
rm -rf __build
27-
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=ARM_MUSCA_S1
155+
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 }}
28156
cmake --build __build

0 commit comments

Comments
 (0)