summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-02 18:54:31 +0700
committerhathach <[email protected]>2025-10-02 18:54:31 +0700
commit610f353d8d602c3192f9edc03669ab792056f7da (patch)
treed354896740f875d0671d7600e414262c91de97bf
parent9cd5fb6f38b95edb70841071007d5ec85b8e0ea8 (diff)
use cache to store skip board in hil ci
-rw-r--r--.github/workflows/build.yml11
-rwxr-xr-xtest/hil/hil_test.py2
2 files changed, 9 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 676e2d428..9243c866d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -199,23 +199,28 @@ jobs:
runs-on: [self-hosted, X64, hathach, hardware-in-the-loop]
steps:
- name: Clean workspace
- if: github.run_attempt == '1'
run: |
echo "Cleaning up for the first run"
rm -rf "${{ github.workspace }}"
mkdir -p "${{ github.workspace }}"
- name: Checkout TinyUSB
- if: github.run_attempt == '1'
uses: actions/checkout@v4
- name: Download Artifacts
- if: github.run_attempt == '1'
uses: actions/download-artifact@v4
with:
path: cmake-build
merge-multiple: true
+ - name: Cache skip list
+ uses: actions/cache@v4
+ with:
+ path: ${{ env.HIL_JSON }}.skip
+ key: hil-skip-${{ github.run_id }}-${{ github.run_attempt }}
+ restore-keys: |
+ hil-skip-${{ github.run_id }}-
+
- name: Test on actual hardware
run: |
ls cmake-build/
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py
index 2e6840a6d..fc8255f1b 100755
--- a/test/hil/hil_test.py
+++ b/test/hil/hil_test.py
@@ -583,7 +583,7 @@ device_tests = [
'device/dfu_runtime',
'device/cdc_msc_freertos',
'device/hid_boot_interface',
- # 'device/mtp'
+ 'device/mtp'
]
dual_tests = [