summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-12-13 20:34:03 +0700
committerGitHub <[email protected]>2023-12-13 20:34:03 +0700
commitccc59e87632909a781851f3b93c42b934b8da8e6 (patch)
treec616abca44b799352a837841e91635f80757f660 /.github/workflows
parent59ecdb78fed4221c3e623d7ea9a9e69c3cd87aae (diff)
parent3da0d781701c6bb121645d7631e2a690aaadb6bf (diff)
Merge pull request #2375 from hathach/hil-add-samd51
add samd51 (itsybitsy_m4) to hardware test loop
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_esp.yml11
-rw-r--r--.github/workflows/cmake_arm.yml21
2 files changed, 21 insertions, 11 deletions
diff --git a/.github/workflows/build_esp.yml b/.github/workflows/build_esp.yml
index 51df644a5..bbbbc72ee 100644
--- a/.github/workflows/build_esp.yml
+++ b/.github/workflows/build_esp.yml
@@ -92,14 +92,15 @@ jobs:
name: ${{ matrix.board }}
path: cmake-build/cmake-build-${{ matrix.board }}
- - name: Test on actual hardware
- run: |
- python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
-
- name: Reset USB bus
run: |
for port in $(lspci | grep USB | cut -d' ' -f1); do
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
- sleep 1;
+ sleep 0.5;
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
+ sleep 3;
done
+
+ - name: Test on actual hardware
+ run: |
+ python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
diff --git a/.github/workflows/cmake_arm.yml b/.github/workflows/cmake_arm.yml
index f760ca3ca..ba531e9ea 100644
--- a/.github/workflows/cmake_arm.yml
+++ b/.github/workflows/cmake_arm.yml
@@ -102,6 +102,13 @@ jobs:
path: |
cmake-build/cmake-build-feather_nrf52840_express/*/*/*.elf
+ - name: Upload Artifacts for Hardware Testing (samd51)
+ if: matrix.family == 'samd51' && github.repository_owner == 'hathach'
+ uses: actions/upload-artifact@v3
+ with:
+ name: itsybitsy_m4
+ path: |
+ cmake-build/cmake-build-itsybitsy_m4/*/*/*.bin
# ---------------------------------------
# Hardware in the loop (HIL)
@@ -116,8 +123,9 @@ jobs:
fail-fast: false
matrix:
board:
- - 'raspberry_pi_pico'
- 'feather_nrf52840_express'
+ - 'itsybitsy_m4'
+ - 'raspberry_pi_pico'
steps:
- name: Clean workspace
run: |
@@ -136,14 +144,15 @@ jobs:
name: ${{ matrix.board }}
path: cmake-build/cmake-build-${{ matrix.board }}
- - name: Test on actual hardware
- run: |
- python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
-
- name: Reset USB bus
run: |
for port in $(lspci | grep USB | cut -d' ' -f1); do
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
- sleep 1;
+ sleep 0.5;
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
+ sleep 3;
done
+
+ - name: Test on actual hardware
+ run: |
+ python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json