summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
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