test hw dfu_runtime
This commit is contained in:
6
.github/workflows/build_arm.yml
vendored
6
.github/workflows/build_arm.yml
vendored
@@ -108,11 +108,11 @@ jobs:
|
|||||||
# Following steps are for Hardware Test with self-hosted
|
# Following steps are for Hardware Test with self-hosted
|
||||||
|
|
||||||
- name: Prepare Artifacts
|
- name: Prepare Artifacts
|
||||||
if: matrix.family == 'rp2040'
|
if: matrix.family == 'rp2040' && github.repository_owner == 'hathach'
|
||||||
run: find examples/ -name "*.elf" -exec mv {} . \;
|
run: find examples/ -name "*.elf" -exec mv {} . \;
|
||||||
|
|
||||||
- name: Upload Artifacts for Hardware Test
|
- name: Upload Artifacts for Hardware Test
|
||||||
if: matrix.family == 'rp2040'
|
if: matrix.family == 'rp2040' && github.repository_owner == 'hathach'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.family }}
|
name: ${{ matrix.family }}
|
||||||
@@ -120,7 +120,7 @@ jobs:
|
|||||||
*.elf
|
*.elf
|
||||||
|
|
||||||
- name: Trigger Hardware Test
|
- name: Trigger Hardware Test
|
||||||
if: matrix.family == 'rp2040'
|
if: matrix.family == 'rp2040' && github.repository_owner == 'hathach'
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: Hardware Test
|
workflow: Hardware Test
|
||||||
|
6
.github/workflows/test_hardware.yml
vendored
6
.github/workflows/test_hardware.yml
vendored
@@ -10,7 +10,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
hw-test:
|
hw-test:
|
||||||
# Limit the run to only hathach due to limited resource on RPI4
|
# Limit the run to only hathach due to limited resource on RPI4
|
||||||
#if: github.repository_owner == 'hathach' && ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
||||||
if: github.repository_owner == 'hathach'
|
if: github.repository_owner == 'hathach'
|
||||||
runs-on: [self-hosted, Linux, ARM64]
|
runs-on: [self-hosted, Linux, ARM64]
|
||||||
|
|
||||||
@@ -57,3 +56,8 @@ jobs:
|
|||||||
dfu-util -d cafe -a 1 -U dfu1
|
dfu-util -d cafe -a 1 -U dfu1
|
||||||
grep "TinyUSB DFU! - Partition 0" dfu0
|
grep "TinyUSB DFU! - Partition 0" dfu0
|
||||||
grep "TinyUSB DFU! - Partition 1" dfu1
|
grep "TinyUSB DFU! - Partition 1" dfu1
|
||||||
|
|
||||||
|
- name: Test dfu
|
||||||
|
run: |
|
||||||
|
./flash.sh dfu_runtime
|
||||||
|
while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 5 ]; do :; done
|
||||||
|
Reference in New Issue
Block a user