-
Notifications
You must be signed in to change notification settings - Fork 15
77 lines (63 loc) · 2.35 KB
/
Copy pathHello-CI.yml
File metadata and controls
77 lines (63 loc) · 2.35 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
name: "Hello: Test Build and Execution"
on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- Hello/**
- .github/workflows/Hello-CI.yml
push:
branches: [main]
paths:
- Hello/**
- .github/workflows/Hello-CI.yml
schedule:
- cron: '00 20 * * 6'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [AC6, GCC, CLANG]
build_type: [Debug, Release]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
with:
egress-policy: audit
- name: Checkout repo
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install tools
uses: ARM-software/cmsis-actions/vcpkg@75fd924d583d17eacdbfaf77f21ca09e335c3c79 # v1
with:
config: ".ci/vcpkg-configuration.json"
- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@75fd924d583d17eacdbfaf77f21ca09e335c3c79 # v1
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Build Hello with ${{ matrix.toolchain }}
working-directory: ./Hello/
run: |
echo "Building with toolchain: ${{ matrix.toolchain }}"
cbuild Hello.csolution.yml --packs --toolchain ${{ matrix.toolchain }}
- name: Run Hello Simulation ${{ matrix.toolchain }}-${{ matrix.build_type }}
working-directory: ./Hello/
run: |
# Determine file extension
EXT="elf"
if [[ "${{ matrix.toolchain }}" == "AC6" ]]; then EXT="axf"; fi
EXEC=./out/Hello/CS300/${{ matrix.build_type }}/Hello.${EXT}
LOG=./out/Hello/CS300/${{ matrix.build_type }}/${{ matrix.toolchain }}_fvp_stdout.log
FVP_Corstone_SSE-300 \
-a $EXEC \
-f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \
-C mps3_board.uart0.out_file=$LOG \
--simlimit 60 --stat
echo "Show simulation UART output for ${{ matrix.toolchain }} ${{ matrix.build_type }}"
cat $LOG