1- name : test building greentea tests with cmake
2-
1+ name : Compile Check
32on : [pull_request]
43
54jobs :
6- build-greentea-cmake :
5+ build-greentea :
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+ profile : full
22+ - target : LPC546XX
23+ profile : full
24+ - target : MIMXRT1060_EVK
25+ profile : full
26+ - target : MIMXRT1170_EVK
27+ profile : full
28+
29+ # Freescale MCUs
30+ - target : K64F
31+ profile : full
32+ - target : KL43Z
33+ profile : full
34+ - target : KW41Z
35+ profile : full
36+
37+ # STM32 MCUs
38+ - target : NUCLEO_F091RC
39+ profile : full
40+ - target : NUCLEO_F103RB
41+ profile : baremetal
42+ - target : NUCLEO_F207ZG
43+ profile : full
44+ - target : NUCLEO_F303RE
45+ profile : full
46+ - target : NUCLEO_F429ZI
47+ profile : full
48+ - target : NUCLEO_F767ZI
49+ profile : full
50+ - target : NUCLEO_G031K8
51+ profile : baremetal
52+ - target : NUCLEO_G431RB
53+ profile : full
54+ - target : NUCLEO_H563ZI
55+ profile : full
56+ - target : NUCLEO_H745ZI_Q_CM7
57+ profile : full
58+ - target : DISCO_L072CZ_LRWAN1
59+ profile : baremetal
60+ - target : XDOT_L151CC
61+ profile : full
62+ - target : DISCO_L4R9I
63+ profile : full
64+ - target : DISCO_L562QE
65+ profile : full
66+ - target : B_U585I_IOT02A
67+ profile : full
68+ - target : NUCLEO_WB55RG
69+ profile : full
70+ - target : NUCLEO_WL55JC
71+ profile : full
72+
73+ # Maxim MCUs
74+ - target : MAX32625MBED
75+ profile : full
76+ - target : XDOT_MAX32670
77+ profile : full
78+
79+ # Nuvoton MCUs
80+ - target : NUMAKER_PFM_NANO130
81+ profile : baremetal
82+ - target : NUMAKER_PFM_M487
83+ profile : full
84+ - target : NU_M2354
85+ profile : full
86+
87+ # Samsung MCUs
88+ - target : S1SBP6A
89+ profile : full
90+
91+ # nRF MCUs
92+ - target : NRF52840_DK
93+ profile : full
94+ - target : ARDUINO_NICLA_SENSE_ME
95+ profile : full
96+
97+ # Toshiba MCUs
98+ - target : TMPM4G9
99+ profile : full
100+
101+ # Renesas MCUs
102+ - target : GR_MANGO
103+ profile : full
104+ - target : RZ_A1H
105+ profile : full
106+
107+ # Ambiq MCUs
108+ - target : SFE_ARTEMIS_DK
109+ profile : full
110+
111+ # Infineon/Cypress MCUs
112+ - target : CY8CKIT_062S2_43012
113+ profile : full
114+ - target : CYTFM_064B0S2_4343W
115+ profile : full
116+
117+ # Analog Devices MCUs
118+ - target : EV_COG_AD4050LZ
119+ profile : full
120+
121+ # GigaDevices MCUs
122+ - target : GD32_F307VG
123+ profile : full
124+ - target : GD32_F450ZI
125+ profile : full
126+
127+ # SiLabs MCUs
128+ - target : EFM32GG11_STK3701
129+ profile : full
130+
131+ # Raspberry Pi MCUs
132+ - target : RASPBERRY_PI_PICO
133+ profile : full
134+
9135 steps :
10136 - name : Checkout
11137 uses : actions/checkout@v3
@@ -15,14 +141,17 @@ 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 : ${{ matrix.profile == 'baremetal' }}
146+ # Note: We have to set a wifi network name and password so that the test will compile on devices that use wifi
19147 run : |
20148 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
149+ cmake -S . -B __build -GNinja -DUPLOAD_METHOD=NONE -DMBED_GREENTEA_WIFI_SECURE_SSID=SomeNetwork -DMBED_GREENTEA_WIFI_SECURE_PASSWORD=SomePassword - 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
22150 cmake --build __build
23151
24- - name : Build ARM_MUSCA_S1 with full profile
152+ - name : Build ${{ matrix.target }} with full profile
153+ if : ${{ matrix.profile == 'full' }}
25154 run : |
26155 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
156+ cmake -S . -B __build -GNinja -DUPLOAD_METHOD=NONE -DMBED_GREENTEA_WIFI_SECURE_SSID=SomeNetwork -DMBED_GREENTEA_WIFI_SECURE_PASSWORD=SomePassword - DCMAKE_CTEST_ARGUMENTS="--output-on-failure;-V" -DMBED_BUILD_GREENTEA_TESTS=ON -DMBED_GREENTEA_SERIAL_PORT=/dev/ttyDUMMY -DMBED_TARGET=${{ matrix.target }}
28157 cmake --build __build
0 commit comments