-
Notifications
You must be signed in to change notification settings - Fork 5
84 lines (73 loc) · 2.9 KB
/
Copy pathRun_RPS_AppKit-E8.yml
File metadata and controls
84 lines (73 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (c) 2026 Arm Limited (or its affiliates). All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Run RPS on AppKit-E8 Hardware
on:
workflow_dispatch:
workflow_run:
workflows: ["Build RPS for AppKit-E8 Hardware"]
types: [completed]
branches: [main]
permissions:
contents: read
actions: read
jobs:
CI:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success') }}
runs-on: [self-hosted, rsp-p5-01]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ github.token }}
- name: Download Build Artifact
if: ${{ github.event_name == 'workflow_run' }}
uses: dawidd6/action-download-artifact@v17
with:
run_id: ${{ github.event.workflow_run.id }}
name: RPS_AppKit-E8-U85_HIL
path: ./RockPaperScissors/AppKit-E8_USB/out
- name: Flash using pyOCD
working-directory: ./RockPaperScissors/AppKit-E8_USB/out
run: |
pyocd load --uid L96807771A --cbuild-run SDS+AppKit-E8-U85.cbuild-run.yml
- name: Run using pyOCD
working-directory: ./RockPaperScissors/AppKit-E8_USB/out
run: |
nohup pyocd run --uid L96807771A --cbuild-run SDS+AppKit-E8-U85.cbuild-run.yml --timelimit 30 --eot > pyocd.out 2>&1 &
- name: Start the SDSIO server on the Raspberry Pi
working-directory: ./RockPaperScissors/AppKit-E8_USB
run: |
sleep 2 # Delay to ensure that pyOCD is started
sdsio-server --control SDS.sdsio.yml --playback --exit-after-playback --no-progress-info | tee sdsio-server.log
- name: Wait for pyocd to complete
run: |
while pgrep pyocd > /dev/null; do
sleep 1
done
- name: Show content of the pyocd.out file
working-directory: ./RockPaperScissors/AppKit-E8_USB/out
run: |
cat ./pyocd.out
- name: Upload SDS artifacts
uses: actions/upload-artifact@v7
with:
name: sds-artifacts
path: |
RockPaperScissors/AppKit-E8_USB/SDS_Recordings/*.p.sds
RockPaperScissors/AppKit-E8_USB/out/pyocd.out
RockPaperScissors/AppKit-E8_USB/out/SDS+AppKit-E8-U85.SVDat
RockPaperScissors/AppKit-E8_USB/sdsio-server.log
if-no-files-found: warn