Skip to content

Commit

Permalink
Split build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
thorrak committed Feb 25, 2025
1 parent 4be207f commit ebec289
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install PlatformIO
run: |
Expand All @@ -55,22 +57,32 @@ jobs:
- name: Build firmware
run: |
pio run -e ${{ matrix.pio_env }}
pio run -e ${{ matrix.pio_env }} --target buildfs
# sh ./copy_bins.sh
- name: Copy files
- name: Copy firmware files
run: |
if [ -f .pio/build/${{ matrix.pio_env }}/firmware.bin ]; then
cp .pio/build/${{ matrix.pio_env }}/firmware.bin bin/${{ matrix.pio_env }}_firmware.bin
echo "Firmware copied"
fi
if [ -f .pio/build/${{ matrix.pio_env }}/partitions.bin ]; then
cp .pio/build/${{ matrix.pio_env }}/partitions.bin bin/${{ matrix.pio_env }}_partitions.bin
echo "Partitions copied"
fi
- name: Build filesystem
run: |
pio run -e ${{ matrix.pio_env }} --target buildfs
# sh ./copy_bins.sh

- name: Copy filesystem files
run: |
if [ -f .pio/build/${{ matrix.pio_env }}/spiffs.bin ]; then
cp .pio/build/${{ matrix.pio_env }}/spiffs.bin bin/${{ matrix.pio_env }}_spiffs.bin
echo "Spiffs copied"
fi
if [ -f .pio/build/${{ matrix.pio_env }}/littlefs.bin ]; then
cp .pio/build/${{ matrix.pio_env }}/littlefs.bin bin/${{ matrix.pio_env }}_spiffs.bin
echo "LittleFS copied"
fi
# TODO - Change the above from _spiffs to _filesystem
Expand Down

0 comments on commit ebec289

Please sign in to comment.