hil simplify skip board from previous run

This commit is contained in:
hathach
2025-10-03 21:00:51 +07:00
parent c3f6c20ee9
commit f3f6046e0b

View File

@@ -198,6 +198,17 @@ jobs:
needs: hil-build
runs-on: [self-hosted, X64, hathach, hardware-in-the-loop]
steps:
- name: Get Skip Boards from previous run
if: github.run_attempt != '1'
run: |
if [ -f "${{ env.HIL_JSON }}.skip" ]; then
SKIP_BOARDS=$(cat "${{ env.HIL_JSON }}.skip")
else
SKIP_BOARDS=""
fi
echo "SKIP_BOARDS=$SKIP_BOARDS"
echo "SKIP_BOARDS=$SKIP_BOARDS" >> $GITHUB_ENV
- name: Clean workspace
run: |
echo "Cleaning up for the first run"
@@ -213,25 +224,8 @@ jobs:
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/
# Skip boards that passed with previous run, file is generated by hil_test.py
SKIP_BOARDS=""
if [ -f ${{ env.HIL_JSON }}.skip ]; then
SKIP_BOARDS=$(cat "${HIL_JSON}.skip")
fi
echo "SKIP_BOARDS=$SKIP_BOARDS"
python3 test/hil/hil_test.py ${{ env.HIL_JSON }} $SKIP_BOARDS
# ---------------------------------------