Skip to content

Commit ebec289

Browse files
committed
Split build steps
1 parent 4be207f commit ebec289

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646

4747
- name: Set up Python
4848
uses: actions/setup-python@v5
49+
with:
50+
python-version: "3.x"
4951

5052
- name: Install PlatformIO
5153
run: |
@@ -55,22 +57,32 @@ jobs:
5557
- name: Build firmware
5658
run: |
5759
pio run -e ${{ matrix.pio_env }}
58-
pio run -e ${{ matrix.pio_env }} --target buildfs
59-
# sh ./copy_bins.sh
6060
61-
- name: Copy files
61+
- name: Copy firmware files
6262
run: |
6363
if [ -f .pio/build/${{ matrix.pio_env }}/firmware.bin ]; then
6464
cp .pio/build/${{ matrix.pio_env }}/firmware.bin bin/${{ matrix.pio_env }}_firmware.bin
65+
echo "Firmware copied"
6566
fi
6667
if [ -f .pio/build/${{ matrix.pio_env }}/partitions.bin ]; then
6768
cp .pio/build/${{ matrix.pio_env }}/partitions.bin bin/${{ matrix.pio_env }}_partitions.bin
69+
echo "Partitions copied"
6870
fi
71+
72+
- name: Build filesystem
73+
run: |
74+
pio run -e ${{ matrix.pio_env }} --target buildfs
75+
# sh ./copy_bins.sh
76+
77+
- name: Copy filesystem files
78+
run: |
6979
if [ -f .pio/build/${{ matrix.pio_env }}/spiffs.bin ]; then
7080
cp .pio/build/${{ matrix.pio_env }}/spiffs.bin bin/${{ matrix.pio_env }}_spiffs.bin
81+
echo "Spiffs copied"
7182
fi
7283
if [ -f .pio/build/${{ matrix.pio_env }}/littlefs.bin ]; then
7384
cp .pio/build/${{ matrix.pio_env }}/littlefs.bin bin/${{ matrix.pio_env }}_spiffs.bin
85+
echo "LittleFS copied"
7486
fi
7587
# TODO - Change the above from _spiffs to _filesystem
7688

0 commit comments

Comments
 (0)