Skip to content

Commit 610f353

Browse files
committed
use cache to store skip board in hil ci
1 parent 9cd5fb6 commit 610f353

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,23 +199,28 @@ jobs:
199199
runs-on: [self-hosted, X64, hathach, hardware-in-the-loop]
200200
steps:
201201
- name: Clean workspace
202-
if: github.run_attempt == '1'
203202
run: |
204203
echo "Cleaning up for the first run"
205204
rm -rf "${{ github.workspace }}"
206205
mkdir -p "${{ github.workspace }}"
207206
208207
- name: Checkout TinyUSB
209-
if: github.run_attempt == '1'
210208
uses: actions/checkout@v4
211209

212210
- name: Download Artifacts
213-
if: github.run_attempt == '1'
214211
uses: actions/download-artifact@v4
215212
with:
216213
path: cmake-build
217214
merge-multiple: true
218215

216+
- name: Cache skip list
217+
uses: actions/cache@v4
218+
with:
219+
path: ${{ env.HIL_JSON }}.skip
220+
key: hil-skip-${{ github.run_id }}-${{ github.run_attempt }}
221+
restore-keys: |
222+
hil-skip-${{ github.run_id }}-
223+
219224
- name: Test on actual hardware
220225
run: |
221226
ls cmake-build/

test/hil/hil_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def test_device_mtp(board):
583583
'device/dfu_runtime',
584584
'device/cdc_msc_freertos',
585585
'device/hid_boot_interface',
586-
# 'device/mtp'
586+
'device/mtp'
587587
]
588588

589589
dual_tests = [

0 commit comments

Comments
 (0)