Skip to content

Commit

Permalink
ci: fix location of firmware dir
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik committed Oct 16, 2023
1 parent a4bddfa commit 51d8c2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-esp32-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ jobs:
export HOME=/home/esp
cd /home/esp
# Upload loop for each binary
for i in `ls -d esp* m5stack*`; do
cd project/$FIRMWARE_DIR
cd project
for FIRMWARE_DIR in `ls -d esp* m5stack*`; do
cd $FIRMWARE_DIR
VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2)
CHIP=$(grep 'hal = { package =' Cargo.toml | cut -d '"' -f2 | cut -d '-' -f1)
Expand Down

0 comments on commit 51d8c2c

Please sign in to comment.