Skip to content

Commit

Permalink
ci: clean sketch path
Browse files Browse the repository at this point in the history
  • Loading branch information
felixerdy committed May 31, 2024
1 parent 0b69b99 commit 531eb72
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/compile-sketches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ jobs:
for sketch_path in "${sketch_paths[@]}"; do
if [[ "$sketch_path" != "-" ]]; then
echo "Processing sketch path: $sketch_path"
python3 lzss.py --encode $sketch_path/$sketch_path.ino.bin /tmp/$sketch_path.ino.lzss
echo "LZSS file created: /tmp/$sketch_path.ino.lzss"
python3 bin2ota.py ESP /tmp/$sketch_path.ino.lzss /tmp/$sketch_path.ino.ota
echo "OTA file created: /tmp/$sketch_path.ino.ota"
# replace ./ with nothing
clean_sketch_path=${sketch_path//.\//}
python3 lzss.py --encode $sketch_path/$sketch_path.ino.bin /tmp/$clean_sketch_path.ino.lzss
echo "LZSS file created: /tmp/$clean_sketch_path.ino.lzss"
python3 bin2ota.py ESP /tmp/$clean_sketch_path.ino.lzss /tmp/$clean_sketch_path.ino.ota
echo "OTA file created: /tmp/$clean_sketch_path.ino.ota"
fi
done
Expand Down

0 comments on commit 531eb72

Please sign in to comment.