File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,7 @@ tasks:
124124
125125 CONTAINER_ID=$(adb shell "docker ps -q --filter 'ancestor=ghcr.io/arduino/app-bricks/python-apps-base:0.5.0'")
126126 if [ -n "$CONTAINER_ID" ]; then
127- RESTART_START=$(date +%s)
128- adb shell "docker restart $CONTAINER_ID"
129- RESTART_END=$(date +%s)
130- echo "🐍 Container restarted in $((RESTART_END - RESTART_START))s"
127+ /usr/bin/time -f "🐍 Restarted in %es" adb shell "docker restart $CONTAINER_ID"
131128 else
132129 echo "[warning] No running container found with image ghcr.io/arduino/app-bricks/python-apps-base"
133130 fi
@@ -159,14 +156,9 @@ tasks:
159156 silent : true
160157 cmds :
161158 - |
162- C_START=$(date +%s)
163- arduino-cli compile --build-path .cache -b arduino:zephyr:unoq sketch/
164- C_END=$(date +%s)
165-
166- U_START=$(date +%s)
167- arduino-cli upload -p /dev/ttyACM0 -b arduino:zephyr:unoq:flash_mode=ram --input-dir .cache sketch/
168- U_END=$(date +%s)
169- echo "♾️ Compiled in $((C_END - C_START))s, Uploaded in $((U_END - U_START))s"
159+ /usr/bin/time -f "♾️ Compiled in %es" arduino-cli compile --build-path .cache -b arduino:zephyr:unoq sketch/
160+ /usr/bin/time -f "♾️ Uploaded in %es" arduino-cli upload -p /dev/ttyACM0 -b arduino:zephyr:unoq:flash_mode=ram --input-dir .cache sketch/
161+ echo "♾️ Compiled and uploaded successfully"
170162 # even if not necessary: the sketch folder is sync into the board to have the updated version
171163 - adb push ./sketch/ /home/arduino/ArduinoApps/scratch-arduino-app/
172164
You can’t perform that action at this time.
0 commit comments