mirror of
https://github.com/hathach/tinyusb.git
synced 2025-10-14 01:58:41 +08:00
hil simplify skip board from previous run
This commit is contained in:
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
# ---------------------------------------
|
||||
|
Reference in New Issue
Block a user