summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorIngHK <[email protected]>2024-03-31 10:28:53 +0200
committerIngHK <[email protected]>2024-03-31 10:28:53 +0200
commit14ce05fea374c1a372d8e531ad3c96b243899e1b (patch)
tree49311014953f61334e2e29ed604f52e294b81a69 /.github/workflows
parentb644e4d95582748dfc9ab947bbb32fd994f34448 (diff)
parent9a981237df01456d60cdd7893493918d88af5e1a (diff)
Merge remote-tracking branch 'remotes/hathach/master' into max3421_nak_retry
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_esp.yml16
-rw-r--r--.github/workflows/cmake_arm.yml16
-rw-r--r--.github/workflows/labeler.yml2
3 files changed, 23 insertions, 11 deletions
diff --git a/.github/workflows/build_esp.yml b/.github/workflows/build_esp.yml
index 07cbf3552..d283c6535 100644
--- a/.github/workflows/build_esp.yml
+++ b/.github/workflows/build_esp.yml
@@ -86,11 +86,17 @@ jobs:
# 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
+ lsusb
+ lsusb -t
+ # reset VIA Labs 2.0 hub
+ sudo usbreset 001/002
+
+ # legacy code
+ #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@v4
diff --git a/.github/workflows/cmake_arm.yml b/.github/workflows/cmake_arm.yml
index 732e9b9df..1e5f61e0e 100644
--- a/.github/workflows/cmake_arm.yml
+++ b/.github/workflows/cmake_arm.yml
@@ -141,11 +141,17 @@ jobs:
# 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
+ lsusb
+ lsusb -t
+ # reset VIA Labs 2.0 hub
+ sudo usbreset 001/002
+
+ # legacy code
+ #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@v4
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index b4a2cdafa..4733c6f06 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -14,7 +14,7 @@ jobs:
- name: Label New Issue or PR
uses: actions/github-script@v7
with:
- github-token: ${{ secrets.API_TOKEN_GITHUB }}
+ github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
let label = '';
let username = '';