Skip to content

Commit ab0e287

Browse files
authored
chore: Update CI to use ESP-IDF 5.4 (#365)
* chore: Update CI to use ESP-IDF 5.4 * update binarylog submodule
1 parent d6b7cdd commit ab0e287

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ jobs:
159159
- name: Build Examples
160160
uses: espressif/esp-idf-ci-action@v1
161161
with:
162-
esp_idf_version: release-v5.2
162+
esp_idf_version: release-v5.4
163163
target: ${{ matrix.test.target }}
164164
path: ${{ matrix.test.path }}

.github/workflows/static_analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
# Do not build the project and do not use cmake to generate compile_commands.json
2424
use_cmake: false
2525

26-
# Use the 5.2 release version since it's what we build with
27-
esp_idf_version: release/v5.2
26+
# Use the 5.4 release version since it's what we build with
27+
esp_idf_version: release/v5.4
2828

2929
# (Optional) cppcheck args
3030
cppcheck_args: -i$GITHUB_WORKSPACE/lib -i$GITHUB_WORKSPACE/external -i$GITHUB_WORKSPACE/components/binary-log/detail -i$GITHUB_WORKSPACE/components/esp_littlefs -i$GITHUB_WORKSPACE/components/esp-nimble-cpp -i$GITHUB_WORKSPACE/components/hid-rp/include/hid -i$GITHUB_WORKSPACE/components/lvgl -i$GITHUB_WORKSPACE/components/esp-dsp --force --enable=all --inline-suppr --inconclusive --platform=mips32 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Espressif++ (ESPP)
22

33
This is the repository for some c++ components developed for the
4-
[ESP-IDF](https://github.com/espressif/esp-idf) framework.
4+
[ESP-IDF](https://github.com/espressif/esp-idf) framework. Specifically we are
5+
targeting `ESP-IDF 5.4` currently.
6+
7+
> NOTE: This repo attempts to stay up to date with ESP-IDF. This means that the
8+
> code within may not be supported on older ESP-IDF targets.
59
610
Each component has an `example` folder which contains c++ code showing how to
711
use the component and which has a README including instructions for how to run

components/file_system/example/main/file_system_example.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,14 @@ extern "C" void app_main(void) {
269269
logger.info("Wrote '{}' to {}", file_contents, sub_file.string());
270270

271271
// list files in a directory
272+
// NOTE: if we're using ESP-IDF < 5.4, we can't use directory_iterator
273+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0)
272274
logger.info("Directory iterator:");
275+
#else
273276
logger.warn(
274-
"NOTE: directory_iterator is not implemented in esp-idf right now :( (as of v5.2.2)");
277+
"NOTE: directory_iterator is not implemented in esp-idf less than 5.4, the following "
278+
"listing will not work.");
279+
#endif
275280
// NOTE: directory_iterator is not implemented in esp-idf right now :(
276281
// directory_iterator can be iterated using a range-for loop
277282
for (auto const &dir_entry : fs::recursive_directory_iterator{sandbox, ec}) {

0 commit comments

Comments
 (0)