Skip to content

Commit

Permalink
Fix action attemp 1
Browse files Browse the repository at this point in the history
  • Loading branch information
andreock committed Jan 28, 2025
1 parent 0608e43 commit ac75541
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
10 changes: 5 additions & 5 deletions prepare_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 *

0 comments on commit ac75541

Please sign in to comment.