summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-07-26 16:49:51 +0700
committerhathach <[email protected]>2022-07-26 16:49:51 +0700
commitd15a86bc69a31fd0637661f44b6a7d53b80a5cad (patch)
tree0073d65daf0716959b6dfd6141fd52d9f15be423 /.github/workflows
parent0be6db50f873ccba3781aa3dd4fbc9b0fd46f38e (diff)
test flash and hw test with cdc msc
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test_hardware.yml27
1 files changed, 14 insertions, 13 deletions
diff --git a/.github/workflows/test_hardware.yml b/.github/workflows/test_hardware.yml
index a39fb6927..923cd4f0a 100644
--- a/.github/workflows/test_hardware.yml
+++ b/.github/workflows/test_hardware.yml
@@ -14,10 +14,11 @@ jobs:
runs-on: [self-hosted, Linux, ARM64]
steps:
- - name: Test self-host
+ - name: Clean workspace
run: |
- echo "Running on self-hosted"
- ls
+ echo "Cleaning up previous run"
+ rm -rf "${{ github.workspace }}"
+ mkdir -p "${{ github.workspace }}"
- name: Download rp2040 Artifacts
uses: dawidd6/action-download-artifact@v2
@@ -25,13 +26,13 @@ jobs:
workflow: build_arm.yml
name: rp2040
- - name: List
- run: ls
-
-# - name: Clean workspace
-# run: |
-# echo "Cleaning up previous run"
-# rm -rf "${{ github.workspace }}"
-# mkdir -p "${{ github.workspace }}"
-
- \ No newline at end of file
+ - name: Flash cdc_msc
+ run: openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program cdc_msc.elf verify reset exit"
+
+ - name: Test
+ run: |
+ test -e /dev/ttyACM1
+ test -e /media/pi/TinyUSB\ MSC/README.TXT
+ cat /media/pi/TinyUSB\ MSC/README.TXT
+ # failed on purpose
+ test -e /dev/ttyACM2