Skip to content

Commit 9203e76

Browse files
committed
Test build failing target only
1 parent 9e648d9 commit 9203e76

File tree

2 files changed

+41
-26
lines changed

2 files changed

+41
-26
lines changed

.github/workflows/devcontainer-nightly-build.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Nightly container builds for selected targets
1+
name: Nightly target builds [devcontainer]
22

33
on:
44
pull_request:
@@ -15,24 +15,24 @@ jobs:
1515

1616
matrix: # Add the target and build type you wish to generate firmware for:
1717
include: [
18-
{ target: SL_STK3701A, build-type: MinSizeRel, container: AzureRTOS},
19-
{ target: SL_STK3701A_REVB, build-type: MinSizeRel, container: AzureRTOS},
20-
{ target: MXCHIP_AZ3166, build-type: MinSizeRel, container: ChibiOS },
21-
{ target: ST_STM32F429I_DISCOVERY, build-type: MinSizeRel, container: ChibiOS },
22-
{ target: ST_STM32F769I_DISCOVERY, build-type: MinSizeRel, container: ChibiOS },
18+
# { target: SL_STK3701A, build-type: MinSizeRel, container: AzureRTOS},
19+
# { target: SL_STK3701A_REVB, build-type: MinSizeRel, container: AzureRTOS},
20+
# { target: MXCHIP_AZ3166, build-type: MinSizeRel, container: ChibiOS },
21+
# { target: ST_STM32F429I_DISCOVERY, build-type: MinSizeRel, container: ChibiOS },
22+
# { target: ST_STM32F769I_DISCOVERY, build-type: MinSizeRel, container: ChibiOS },
2323
{ target: ORGPAL_PALTHREE, build-type: MinSizeRel, container: ChibiOS },
24-
{ target: ORGPAL_PALX, build-type: MinSizeRel, container: ChibiOS },
25-
{ target: ST_NUCLEO64_F091RC, build-type: MinSizeRel, container: ChibiOS },
26-
{ target: M5Core2, build-type: MinSizeRel, container: ESP32 },
27-
{ target: ESP_WROVER_KIT, build-type: MinSizeRel, container: ESP32 },
28-
{ target: ESP32_S2_USB, build-type: MinSizeRel, container: ESP32 },
29-
{ target: ESP32_S3, build-type: MinSizeRel, container: ESP32 },
30-
{ target: ESP32_C3, build-type: MinSizeRel, container: ESP32 },
31-
{ target: ESP32_C6_THREAD, build-type: MinSizeRel, container: ESP32 },
32-
{ target: ESP32_H2_THREAD, build-type: MinSizeRel, container: ESP32 },
33-
{ target: NXP_MIMXRT1060_EVK, build-type: MinSizeRel, container: FreeRTOS-NXP },
34-
{ target: TI_CC1352R1_LAUNCHXL, build-type: MinSizeRel, container: TI, radio-freq: 868 },
35-
{ target: TI_CC1352R1_LAUNCHXL, build-type: MinSizeRel, container: TI, radio-freq: 915 },
24+
# { target: ORGPAL_PALX, build-type: MinSizeRel, container: ChibiOS },
25+
# { target: ST_NUCLEO64_F091RC, build-type: MinSizeRel, container: ChibiOS },
26+
# { target: M5Core2, build-type: MinSizeRel, container: ESP32 },
27+
# { target: ESP_WROVER_KIT, build-type: MinSizeRel, container: ESP32 },
28+
# { target: ESP32_S2_USB, build-type: MinSizeRel, container: ESP32 },
29+
# { target: ESP32_S3, build-type: MinSizeRel, container: ESP32 },
30+
# { target: ESP32_C3, build-type: MinSizeRel, container: ESP32 },
31+
# { target: ESP32_C6_THREAD, build-type: MinSizeRel, container: ESP32 },
32+
# { target: ESP32_H2_THREAD, build-type: MinSizeRel, container: ESP32 },
33+
# { target: NXP_MIMXRT1060_EVK, build-type: MinSizeRel, container: FreeRTOS-NXP },
34+
# { target: TI_CC1352R1_LAUNCHXL, build-type: MinSizeRel, container: TI, radio-freq: 868 },
35+
# { target: TI_CC1352R1_LAUNCHXL, build-type: MinSizeRel, container: TI, radio-freq: 915 },
3636
]
3737

3838
runs-on: ubuntu-latest

targets/ChibiOS/CMakeLists.txt

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,30 +337,45 @@ if(NF_FEATURE_USE_LITTLEFS_OPTION)
337337

338338
# check if LITTLEFS_SOURCE was specified or if it's empty (default is empty)
339339
set(NO_LITTLEFS_SOURCE TRUE)
340-
341-
# WHEN CHANGING THIS MAKE SURE TO UPDATE THE DEV CONTAINERS AND PIPELINE YAML
342-
set(LITTLEFS_VERSION_TAG "v2.9.3")
343-
344340
if(LITTLEFS_SOURCE)
345341
if(NOT ${LITTLEFS_SOURCE} STREQUAL "")
346342
set(NO_LITTLEFS_SOURCE FALSE)
347343
endif()
348344
endif()
349345

346+
# LITTLEFS version
347+
set(LITTLEFS_VERSION_EMPTY TRUE)
348+
349+
# check if build was requested with a specifc littlefs version
350+
if(DEFINED LITTLEFS_VERSION)
351+
if(NOT ${LITTLEFS_VERSION} STREQUAL "")
352+
set(LITTLEFS_VERSION_EMPTY FALSE)
353+
endif()
354+
endif()
355+
356+
# check if build was requested with a specifc littlefs version
357+
if(LITTLEFS_VERSION_EMPTY)
358+
# no littlefs version actualy specified, must be empty which is fine, we'll default to a known good version
359+
# WHEN CHANGING THIS MAKE SURE TO UPDATE THE DEV CONTAINERS AND PIPELINE YAML
360+
set(LITTLEFS_VERSION_TAG "v2.9.3")
361+
else()
362+
# set version
363+
set(LITTLEFS_VERSION_TAG ${LITTLEFS_VERSION})
364+
endif()
365+
350366
if(NO_LITTLEFS_SOURCE)
351-
# no littlefs source specified, download it from it's repo
352-
message(STATUS "littlefs source from from GitHub repo")
367+
message(STATUS "littlefs ${LITTLEFS_VERSION_TAG} from GitHub repo")
353368

354369
FetchContent_Declare(
355370
littlefs
356-
GIT_REPOSITORY https://github.com/littlefs-project/littlefs
371+
GIT_REPOSITORY https://github.com/littlefs-project/littlefs.git
357372
GIT_TAG ${LITTLEFS_VERSION_TAG}
358373
)
359374

360375
else()
361376
# littlefs source was specified
362377

363-
message(STATUS "littlefs source from: ${LITTLEFS_SOURCE}")
378+
message(STATUS "littlefs ${LITTLEFS_VERSION_TAG} source from: ${LITTLEFS_SOURCE})")
364379

365380
FetchContent_Declare(
366381
littlefs

0 commit comments

Comments
 (0)