From ac75541b9d2316592d3dae2275b0588463665e79 Mon Sep 17 00:00:00 2001 From: andreock Date: Wed, 29 Jan 2025 00:51:16 +0100 Subject: [PATCH] Fix action attemp 1 --- .github/workflows/main.yml | 5 +++-- prepare_image.sh | 10 +++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f7d9efa..477ec3c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,9 +26,10 @@ jobs: run: bash init_libs.sh - name: Build for all boards run: pio run - - name: Extract firmwares + - name: Prepare firmware folder run: bash prepare_image_all.sh - - uses: actions/upload-artifact@v4 + - name: Upload firmware to artifact + uses: actions/upload-artifact@v4 with: name: firmware path: firmware/ diff --git a/prepare_image.sh b/prepare_image.sh index 9281b54..0cd64d3 100644 --- a/prepare_image.sh +++ b/prepare_image.sh @@ -3,16 +3,16 @@ # A simple script to extract firmware images from pio folder BOARD=$1 VERSION="0_5_2" -mkdir firmware +# mkdir firmware # Remove old firmware -rm -rf firmware/* +# rm -rf firmware/* # pio run -e "$BOARD" cp /home/"$(whoami)"/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin firmware/"$BOARD" -cp .pio/firmware/"$BOARD"/partitions.bin firmware/"$BOARD" -cp .pio/firmware/"$BOARD"/firmware.bin firmware/"$BOARD" -cp .pio/firmware/"$BOARD"/bootloader.bin firmware/"$BOARD" +cp .pio/build/"$BOARD"/partitions.bin firmware/"$BOARD" +cp .pio/build/"$BOARD"/firmware.bin firmware/"$BOARD" +cp .pio/build/"$BOARD"/bootloader.bin firmware/"$BOARD" # cd firmware && zip -9 -r capibaraZero_"$VERSION"_"$BOARD".zip *