File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed
CI/build/examples/BareMinimum Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 2828 name : Check CMake usage
2929 runs-on : ubuntu-latest
3030
31+ strategy :
32+ matrix :
33+ boardname :
34+ - NUCLEO_C031C6
35+ - NUCLEO_F091RC
36+ - NUCLEO_F103RB
37+ - NUCLEO_F207ZG
38+ - NUCLEO_F303RE
39+ - NUCLEO_F411RE
40+ - NUCLEO_F767ZI
41+ - NUCLEO_G0B1RE
42+ - NUCLEO_G474RE
43+ - NUCLEO_H743ZI2
44+ - NUCLEO_L073RZ
45+ - NUCLEO_L152RE
46+ - NUCLEO_L476RG
47+ - NUCLEO_L552ZE_Q
48+ - NUCLEO_U575ZI_Q
49+ - P_NUCLEO_WB55RG
50+ - NUCLEO_WL55JC1
51+
3152 steps :
3253 - name : Checkout
3354 uses : actions/checkout@main
3859 - name : Configure
3960 run : |
4061 mkdir build
41- cmake -S CI/build/examples/BareMinimum -B ./build -G Ninja
62+ cmake -DBOARDNAME=${{ matrix.boardname }} - S CI/build/examples/BareMinimum -B ./build -G Ninja
4263
4364 - name : Build example
4465 working-directory : ' ${{ github.workspace }}/build'
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ cmake_minimum_required(VERSION 3.21)
1010file (REAL_PATH "../../../../" CORE_PATH EXPAND_TILDE)
1111file (TO_CMAKE_PATH "${CORE_PATH} " CORE_PATH)
1212
13- set (BOARDNAME "NUCLEO_F103RB" )
13+ if (NOT DEFINED BOARDNAME)
14+ MESSAGE (STATUS "BOARDNAME is not defined set it to NUCLEO_F103RB" )
15+ set (BOARDNAME "NUCLEO_F103RB" )
16+ endif ()
1417
1518list (APPEND CMAKE_MODULE_PATH ${CORE_PATH} /cmake)
1619set (CMAKE_TOOLCHAIN_FILE toolchain)
You can’t perform that action at this time.
0 commit comments