Preserve littlefs image before firmware build wipes it out

This commit is contained in:
cjkas 2026-04-04 12:44:57 +02:00
parent 15d5b064d4
commit d15b05cfbd

View file

@ -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