summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-08-01 14:42:58 +0700
committerhathach <[email protected]>2022-08-01 14:42:58 +0700
commitfe7fca7abbea02b9f0ac8f53bf4ca1d1019c6e85 (patch)
treead68e1ba8f58972b0b26d72612150a45b523d1b8 /.github/workflows
parent4a47db97eb36c36319b1b434ac1f577ad77fb68c (diff)
minor clean up
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test_hardware.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/test_hardware.yml b/.github/workflows/test_hardware.yml
index 2fbfcb991..7a6e2a470 100644
--- a/.github/workflows/test_hardware.yml
+++ b/.github/workflows/test_hardware.yml
@@ -30,18 +30,18 @@ jobs:
run: |
touch flash.sh
chmod +x flash.sh
- echo > flash.sh 'openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1.elf reset exit"'
+ echo > flash.sh 'openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1 reset exit"'
- name: Test cdc_dual_ports
run: |
- ./flash.sh cdc_dual_ports
+ ./flash.sh cdc_dual_ports.elf
while (! ([ -e /dev/ttyACM1 ] && [ -e /dev/ttyACM2 ])) && [ $SECONDS -le 5 ]; do :; done
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
test -e /dev/ttyACM2 && echo "ttyACM2 exists"
- name: Test cdc_msc
run: |
- ./flash.sh cdc_msc
+ ./flash.sh cdc_msc.elf
readme='/media/pi/TinyUSB MSC/README.TXT'
while (! ([ -e /dev/ttyACM1 ] && [ -f "$readme" ])) && [ $SECONDS -le 5 ]; do :; done
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
@@ -50,14 +50,20 @@ jobs:
- name: Test dfu
run: |
- ./flash.sh dfu
+ ./flash.sh dfu.elf
while (! (dfu-util -l | grep "Found DFU")) && [ $SECONDS -le 5 ]; do :; done
dfu-util -d cafe -a 0 -U dfu0
dfu-util -d cafe -a 1 -U dfu1
grep "TinyUSB DFU! - Partition 0" dfu0
grep "TinyUSB DFU! - Partition 1" dfu1
- - name: Test dfu
+ - name: Test dfu_runtime
run: |
- ./flash.sh dfu_runtime
+ ./flash.sh dfu_runtime.elf
while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 5 ]; do :; done
+
+# - name: Test hid_boot_interface
+# run: |
+# ./flash.sh hid_boot_interface.elf
+# while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 5 ]; do :; done
+ \ No newline at end of file