From d15b05cfbd424acfd7424cc5a8122103705cc31c Mon Sep 17 00:00:00 2001 From: cjkas Date: Sat, 4 Apr 2026 12:44:57 +0200 Subject: [PATCH] Preserve littlefs image before firmware build wipes it out --- .github/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8ebcfed..9af09e2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -95,9 +95,15 @@ jobs: - name: Build LittleFS image run: pio run -e ${{ matrix.env }} -t buildfs + - name: Save LittleFS image + run: cp .pio/build/${{ matrix.env }}/littlefs.bin littlefs.bin + - name: Build firmware run: pio run -e ${{ matrix.env }} + - name: Restore LittleFS image + run: cp littlefs.bin .pio/build/${{ matrix.env }}/littlefs.bin + - name: List build artifacts run: find .pio/build/${{ matrix.env }} -maxdepth 1 -name "*.bin" | sort