summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-12-15 17:42:25 +0700
committerhathach <[email protected]>2023-12-15 17:42:25 +0700
commit17a0ce655bab4413928404ce7dc4f968738bfcf6 (patch)
tree26efd78e70fd01b0c819104b1c86d85b6f685f9b /.github
parentf3d713ac7336913a68326eae5a7e146ec2cd22c3 (diff)
parent9474db8b0fc3e96d654ed49529b82bbd329f2f56 (diff)
Merge branch 'master' into h5
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_esp.yml17
-rw-r--r--.github/workflows/cmake_arm.yml27
2 files changed, 27 insertions, 17 deletions
diff --git a/.github/workflows/build_esp.yml b/.github/workflows/build_esp.yml
index 51df644a5..57cf9a4a6 100644
--- a/.github/workflows/build_esp.yml
+++ b/.github/workflows/build_esp.yml
@@ -81,6 +81,15 @@ jobs:
rm -rf "${{ github.workspace }}"
mkdir -p "${{ github.workspace }}"
+ # USB bus on rpi4 is not stable, reset it before testing
+ - 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 0.1;
+ echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
+ done
+
- name: Checkout test/hil
uses: actions/checkout@v3
with:
@@ -95,11 +104,3 @@ jobs:
- 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;
- echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
- done
diff --git a/.github/workflows/cmake_arm.yml b/.github/workflows/cmake_arm.yml
index f760ca3ca..1a99d407f 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: |
@@ -125,6 +133,15 @@ jobs:
rm -rf "${{ github.workspace }}"
mkdir -p "${{ github.workspace }}"
+ # USB bus on rpi4 is not stable, reset it before testing
+ - 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 0.1;
+ echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
+ done
+
- name: Checkout test/hil
uses: actions/checkout@v3
with:
@@ -139,11 +156,3 @@ jobs:
- 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;
- echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
- done