File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,8 +27,33 @@ permissions:
2727 actions : read
2828
2929jobs :
30+ fork-restricted :
31+ name : Private runner restricted
32+ # trigger this only for forks, to prevent them from action runout
33+ if : ${{ github.repository != 'Arm-Examples/ModelNova' }}
34+ runs-on : ubuntu-latest
35+
36+ steps :
37+ - name : Notify runner restriction
38+ run : |
39+ MESSAGE="Workflows on the private runner are restricted for security reasons."
40+ GUIDANCE="Contributors can validate changes using GitHub-hosted runners."
41+ echo "${MESSAGE}"
42+ echo "${GUIDANCE}"
43+ {
44+ echo "## ⚠️ AppKit-E8 hardware test was not run"
45+ echo ""
46+ echo "${MESSAGE}"
47+ echo ""
48+ echo "${GUIDANCE}"
49+ } >> "$GITHUB_STEP_SUMMARY"
50+ exit 1
51+
3052 CI :
31- if : ${{ github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success') }}
53+ if : >-
54+ ${{ (github.event_name == 'workflow_dispatch' ||
55+ (github.event.workflow_run.conclusion == 'success' &&
56+ github.event.workflow_run.head_repository.full_name == 'Arm-Examples/ModelNova')) }}
3257 runs-on : [self-hosted, rsp-p5-01]
3358
3459 steps :
5681 nohup pyocd run --uid L96807771A --cbuild-run SDS+AppKit-E8-U85.cbuild-run.yml --timelimit 30 --eot > pyocd.out 2>&1 &
5782
5883 - name : Start the SDSIO server on the Raspberry Pi
59- working-directory : ./RockPaperScissors/AppKit-E8_USB
84+ working-directory : ./RockPaperScissors/AppKit-E8_USB
6085 run : |
6186 sleep 2 # Delay to ensure that pyOCD is started
6287 sdsio-server --control SDS.sdsio.yml --playback --exit-after-playback --no-progress-info | tee sdsio-server.log
You can’t perform that action at this time.
0 commit comments