From 5f1727da7d005042871ab097b4932c860277d4fc Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply@i3omb.com> Date: Wed, 16 Sep 2026 15:44:22 +0100 Subject: [PATCH 1/6] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 846fd66..f15f9cb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,19 +16,15 @@ jobs: - name: Install host toolchain if: hashFiles('tests/host/CMakeLists.txt') != '' run: | - export DEBIAN_FRONTEND=noninteractive - if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" -ne 0 ]; then - SUDO=sudo - else - SUDO= - fi - $SUDO apt-get update + export DEBIAN_FRONTEND=noninteractive && \ + if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" -ne 0 ]; then SUDO=sudo; else SUDO=; fi && \ + $SUDO apt-get update && \ $SUDO apt-get install -y --no-install-recommends cmake gcc g++ make - name: Host unit tests if: hashFiles('tests/host/CMakeLists.txt') != '' run: | - cmake -S tests/host -B build/host - cmake --build build/host + cmake -S tests/host -B build/host && \ + cmake --build build/host && \ ctest --test-dir build/host --output-on-failure firmware: @@ -47,17 +43,25 @@ jobs: target: esp32s3 sdkconfig: sdkconfig.s3 steps: + - name: Install Node.js + run: | + export DEBIAN_FRONTEND=noninteractive && \ + if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" -ne 0 ]; then SUDO=sudo; else SUDO=; fi && \ + $SUDO apt-get update && \ + $SUDO apt-get install -y --no-install-recommends curl ca-certificates && \ + curl -fsSL https://deb.nodesource.com/setup_20.x | $SUDO bash - && \ + $SUDO apt-get install -y --no-install-recommends nodejs - uses: actions/checkout@v4 - name: Build if: hashFiles('CMakeLists.txt') != '' run: | - git config --global --add safe.directory '*' - idf.py -B build/${{ matrix.board }} set-target ${{ matrix.target }} + git config --global --add safe.directory '*' && \ + idf.py -B build/${{ matrix.board }} set-target ${{ matrix.target }} && \ idf.py -B build/${{ matrix.board }} \ -D SDKCONFIG_DEFAULTS="sdkconfig.defaults;${{ matrix.sdkconfig }}" \ -D AUTOFILM_BOARD=${{ matrix.board }} \ - build - idf.py -B build/${{ matrix.board }} size | tee size-${{ matrix.board }}.txt + build && \ + idf.py -B build/${{ matrix.board }} size | tee size-${{ matrix.board }}.txt && \ python $IDF_PATH/components/esptool_py/esptool/esptool.py \ --chip ${{ matrix.target }} merge_bin \ -o autofilm-${{ matrix.board }}-${{ gitea.sha }}.bin \ @@ -74,3 +78,4 @@ jobs: build/${{ matrix.board }}/flasher_args.json build/${{ matrix.board }}/sdkconfig size-${{ matrix.board }}.txt + \ No newline at end of file -- 2.39.5 From 9ea89ac4679606ac1979189df91e89d16d938cd5 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply@i3omb.com> Date: Wed, 16 Sep 2026 15:50:13 +0100 Subject: [PATCH 2/6] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f15f9cb..b06252b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: export DEBIAN_FRONTEND=noninteractive && \ if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" -ne 0 ]; then SUDO=sudo; else SUDO=; fi && \ $SUDO apt-get update && \ - $SUDO apt-get install -y --no-install-recommends cmake gcc g++ make + $SUDO apt-get install -y -q --no-install-recommends cmake gcc g++ make - name: Host unit tests if: hashFiles('tests/host/CMakeLists.txt') != '' run: | @@ -46,11 +46,10 @@ jobs: - name: Install Node.js run: | export DEBIAN_FRONTEND=noninteractive && \ + export NEEDRESTART_MODE=a && \ if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" -ne 0 ]; then SUDO=sudo; else SUDO=; fi && \ $SUDO apt-get update && \ - $SUDO apt-get install -y --no-install-recommends curl ca-certificates && \ - curl -fsSL https://deb.nodesource.com/setup_20.x | $SUDO bash - && \ - $SUDO apt-get install -y --no-install-recommends nodejs + $SUDO apt-get install -y -q --no-install-recommends nodejs - uses: actions/checkout@v4 - name: Build if: hashFiles('CMakeLists.txt') != '' -- 2.39.5 From 0b0a7130980ba3fa538965830cbfc83f33ad81d4 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply@i3omb.com> Date: Wed, 16 Sep 2026 15:54:32 +0100 Subject: [PATCH 3/6] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b06252b..c9f005d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -54,6 +54,7 @@ jobs: - name: Build if: hashFiles('CMakeLists.txt') != '' run: | + . $IDF_PATH/export.sh && \ git config --global --add safe.directory '*' && \ idf.py -B build/${{ matrix.board }} set-target ${{ matrix.target }} && \ idf.py -B build/${{ matrix.board }} \ -- 2.39.5 From 7406114368cdcf3252c4f6d047623cd71ea61f7d Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply@i3omb.com> Date: Wed, 16 Sep 2026 16:14:53 +0100 Subject: [PATCH 4/6] Update main/CMakeLists.txt --- main/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index abb25dc..97507be 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -12,7 +12,8 @@ endif() idf_component_register(SRCS "main.c" INCLUDE_DIRS "." REQUIRES ${BOARD_COMP} driver app_process app_machine app_ui - hal_motor hal_temp hal_audio hal_display hal_input) + hal_motor hal_temp hal_audio hal_display hal_input + PRIV_REQUIRES esp_timer) if(IDF_TARGET STREQUAL "esp32") target_compile_definitions(${COMPONENT_LIB} PRIVATE AUTOFILM_BOARD_WROOM=1) -- 2.39.5 From 84b60155dd2b08abe199eaf5700e975e90553b54 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply@i3omb.com> Date: Wed, 16 Sep 2026 16:34:14 +0100 Subject: [PATCH 5/6] Update components/app_ui/app_ui.c --- components/app_ui/app_ui.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/app_ui/app_ui.c b/components/app_ui/app_ui.c index bc05464..d6152db 100644 --- a/components/app_ui/app_ui.c +++ b/components/app_ui/app_ui.c @@ -56,7 +56,7 @@ static void draw_program_select(void) static void draw_step_select(const ui_evt_t *ev) { - char line[21]; + char line[32]; char mm[8]; uint16_t ts = ev->time_s; fmt_mmss(mm, sizeof(mm), ts); @@ -71,7 +71,7 @@ static void draw_step_select(const ui_evt_t *ev) static void draw_armed(const ui_evt_t *ev) { - char line[21]; + char line[32]; char mm[8]; fmt_mmss(mm, sizeof(mm), ev->time_s); int pref = (int)(ev->temp_pref_c + (ev->temp_pref_c >= 0 ? 0.5f : -0.5f)); @@ -84,7 +84,7 @@ static void draw_armed(const ui_evt_t *ev) static void draw_running(const ui_evt_t *ev) { - char line[21]; + char line[32]; char mm[8]; uint32_t rem_s = (ev->remaining_ms + 999u) / 1000u; fmt_mmss(mm, sizeof(mm), rem_s); @@ -98,7 +98,7 @@ static void draw_running(const ui_evt_t *ev) static void draw_stopped(const ui_evt_t *ev) { - char line[21]; + char line[32]; char mm[8]; uint32_t rem_s = (ev->remaining_ms + 999u) / 1000u; fmt_mmss(mm, sizeof(mm), rem_s); @@ -111,7 +111,7 @@ static void draw_stopped(const ui_evt_t *ev) static void draw_complete(const ui_evt_t *ev) { - char line[21]; + char line[32]; hal_display_clear(); snprintf(line, sizeof(line), "%-10.10s Done", step_name(ev->process_id, ev->step_index)); hal_display_text(0, 0, line); -- 2.39.5 From 637ea8cb6ebb17e6d3b25ae03fa2fd1c46d214ac Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply@i3omb.com> Date: Wed, 16 Sep 2026 16:45:58 +0100 Subject: [PATCH 6/6] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c9f005d..d1c14ef 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -62,10 +62,11 @@ jobs: -D AUTOFILM_BOARD=${{ matrix.board }} \ build && \ idf.py -B build/${{ matrix.board }} size | tee size-${{ matrix.board }}.txt && \ + cd build/${{ matrix.board }} && \ python $IDF_PATH/components/esptool_py/esptool/esptool.py \ --chip ${{ matrix.target }} merge_bin \ - -o autofilm-${{ matrix.board }}-${{ gitea.sha }}.bin \ - @build/${{ matrix.board }}/flash_args + -o ../../autofilm-${{ matrix.board }}-${{ gitea.sha }}.bin \ + @flash_args - uses: actions/upload-artifact@v3 if: hashFiles('CMakeLists.txt') != '' with: -- 2.39.5