test flash and hw test with cdc msc
This commit is contained in:
27
.github/workflows/test_hardware.yml
vendored
27
.github/workflows/test_hardware.yml
vendored
@@ -14,10 +14,11 @@ jobs:
|
|||||||
runs-on: [self-hosted, Linux, ARM64]
|
runs-on: [self-hosted, Linux, ARM64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Test self-host
|
- name: Clean workspace
|
||||||
run: |
|
run: |
|
||||||
echo "Running on self-hosted"
|
echo "Cleaning up previous run"
|
||||||
ls
|
rm -rf "${{ github.workspace }}"
|
||||||
|
mkdir -p "${{ github.workspace }}"
|
||||||
|
|
||||||
- name: Download rp2040 Artifacts
|
- name: Download rp2040 Artifacts
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
@@ -25,13 +26,13 @@ jobs:
|
|||||||
workflow: build_arm.yml
|
workflow: build_arm.yml
|
||||||
name: rp2040
|
name: rp2040
|
||||||
|
|
||||||
- name: List
|
- name: Flash cdc_msc
|
||||||
run: ls
|
run: openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program cdc_msc.elf verify reset exit"
|
||||||
|
|
||||||
# - name: Clean workspace
|
- name: Test
|
||||||
# run: |
|
run: |
|
||||||
# echo "Cleaning up previous run"
|
test -e /dev/ttyACM1
|
||||||
# rm -rf "${{ github.workspace }}"
|
test -e /media/pi/TinyUSB\ MSC/README.TXT
|
||||||
# mkdir -p "${{ github.workspace }}"
|
cat /media/pi/TinyUSB\ MSC/README.TXT
|
||||||
|
# failed on purpose
|
||||||
|
test -e /dev/ttyACM2
|
||||||
|
Reference in New Issue
Block a user