From 50898b94f4c73182e4fa4e8ec93023dde34ff49c Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Fri, 13 Jun 2025 17:18:39 +0200 Subject: [PATCH] code optimize Signed-off-by: Peter Siegmund --- .github/workflows/esp32_build.yaml | 14 ++++++++------ components/storage/storage.c | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/esp32_build.yaml b/.github/workflows/esp32_build.yaml index d12f9dd..d5b3888 100644 --- a/.github/workflows/esp32_build.yaml +++ b/.github/workflows/esp32_build.yaml @@ -40,14 +40,16 @@ jobs: esp_idf_version: ${{ matrix.idf_ver }} target: ${{ matrix.idf_target }} command: idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release" build + - name: Prepare binary files + run: | + mkdir -p build-release + cp build/flasher_args.json build-release/ + cp build/*.bin build-release/ + cp build/bootloader/*.bin build-release/ + cp build/partition_table/*.bin build-release/ - name: Archive build output artifacts uses: actions/upload-artifact@v4 with: name: lighthouses-${{ matrix.idf_target }}-${{ matrix.idf_ver }} path: | - build/flasher_args.json - build/storage.bin - build/ota_data_initial.bin - build/lighthouses.bin - build/bootloader/bootloader.bin - build/partition_table/partition-table.bin + build-release/*.* diff --git a/components/storage/storage.c b/components/storage/storage.c index 0f30592..b61cb2a 100644 --- a/components/storage/storage.c +++ b/components/storage/storage.c @@ -14,7 +14,7 @@ static char s_current_filename[256] = {0}; // Buffer to store the current filena esp_err_t storage_init(void) { - ESP_LOGI(TAG, "Initializing SPIFFS"); + ESP_LOGI(TAG, "Initializing Storage"); esp_vfs_spiffs_conf_t conf = { .base_path = "/storage", // Path where the filesystem will be mounted