File tree Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,17 @@ jobs:
198198 needs : hil-build
199199 runs-on : [self-hosted, X64, hathach, hardware-in-the-loop]
200200 steps :
201+ - name : Get Skip Boards from previous run
202+ if : github.run_attempt != '1'
203+ run : |
204+ if [ -f "${{ env.HIL_JSON }}.skip" ]; then
205+ SKIP_BOARDS=$(cat "${{ env.HIL_JSON }}.skip")
206+ else
207+ SKIP_BOARDS=""
208+ fi
209+ echo "SKIP_BOARDS=$SKIP_BOARDS"
210+ echo "SKIP_BOARDS=$SKIP_BOARDS" >> $GITHUB_ENV
211+
201212 - name : Clean workspace
202213 run : |
203214 echo "Cleaning up for the first run"
@@ -213,25 +224,8 @@ jobs:
213224 path : cmake-build
214225 merge-multiple : true
215226
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-
224227 - name : Test on actual hardware
225228 run : |
226- ls cmake-build/
227-
228- # Skip boards that passed with previous run, file is generated by hil_test.py
229- SKIP_BOARDS=""
230- if [ -f ${{ env.HIL_JSON }}.skip ]; then
231- SKIP_BOARDS=$(cat "${HIL_JSON}.skip")
232- fi
233- echo "SKIP_BOARDS=$SKIP_BOARDS"
234-
235229 python3 test/hil/hil_test.py ${{ env.HIL_JSON }} $SKIP_BOARDS
236230
237231 # ---------------------------------------
You can’t perform that action at this time.
0 commit comments