Build and Run RPS on Simulator #108
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: Build and Run RPS on Simulator | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: '0 20 * * 0' # Runs at 20:00 on Sunday | |
| jobs: | |
| CI: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Setup Python 3.13 | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.13' | |
| - name: Install Python requirements | |
| run: pip install -r requirements.txt | |
| - name: Activate vcpkg | |
| uses: ARM-software/cmsis-actions/vcpkg@v1 | |
| with: | |
| config: "./vcpkg-configuration.json" | |
| - name: Activate Arm tool license | |
| uses: ARM-software/cmsis-actions/armlm@v1 | |
| - name: Initialize CMSIS pack root folder | |
| run: | | |
| cpackget init https://www.keil.com/pack/index.pidx | |
| cpackget update-index | |
| - name: Add Beta packs | |
| working-directory: ./ | |
| run: | | |
| cpackget add ./packs/PyTorch.ExecuTorch.1.1.0-rc1-build.12/PyTorch.ExecuTorch.pdsc --agree-embedded-license | |
| - name: Build the target-set | |
| working-directory: ./RockPaperScissors/AppKit-E8_USB | |
| run: | | |
| cbuild SDS.csolution.yml --active SSE-320-U85 --packs | |
| - name: Run on FVP | |
| working-directory: ./RockPaperScissors/AppKit-E8_USB | |
| run: | | |
| FVP_Corstone_SSE-320 -f ./Board/Corstone-320/fvp_config.txt -a ./out/AlgorithmTest/SSE-320-U85/Debug/AlgorithmTest.axf --simlimit 120 || true | |
| - name: Print FVP SDSIO log file | |
| working-directory: ./RockPaperScissors/AppKit-E8_USB | |
| run: | | |
| cat "./SDS_Recordings/sdsio.log" | |
| - name: Upload output of the built target-set | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: RPS_SSE-320-U85_FVP | |
| path: | | |
| ./RockPaperScissors/AppKit-E8_USB/out | |
| ./RockPaperScissors/AppKit-E8_USB/SDS_Recordings/*.p.sds | |
| ./RockPaperScissors/AppKit-E8_USB/SDS_Recordings/sdsio.log |