-
Notifications
You must be signed in to change notification settings - Fork 14
75 lines (65 loc) · 2.85 KB
/
Hello-CI.yml
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
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'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install tools
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
config: ".ci/vcpkg-configuration.json"
- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
- name: Build Hello with AC6 and all contexts
working-directory: ./Hello/
run: cbuild Hello.csolution.yml --packs --toolchain AC6
- name: Run Hello build-type Debug, AC6
working-directory: ./Hello/
run: |
FVP_Corstone_SSE-300 -a ./out/Hello/CS300/Debug/Hello.axf -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \
-C mps3_board.uart0.out_file=./out/Hello/CS300/Debug/AC6_fvp_stdout.log \
--simlimit 60 --stat
echo " Show simulation UART output build with AC6 Debug"
cat ./out/Hello/CS300/Debug/AC6_fvp_stdout.log
- name: Run Hello build-type Release, AC6
working-directory: ./Hello/
run: |
FVP_Corstone_SSE-300 -a ./out/Hello/CS300/Release/Hello.axf -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \
-C mps3_board.uart0.out_file=./out/Hello/CS300/Release/AC6_fvp_stdout.log \
--simlimit 60 --stat
echo " Show simulation UART output build with AC6 Release"
cat ./out/Hello/CS300/Release/AC6_fvp_stdout.log
- name: Build Hello with GCC and all contexts
working-directory: ./Hello/
run: cbuild Hello.csolution.yml --packs --toolchain GCC
- name: Run Hello build-type Debug, GCC
working-directory: ./Hello/
run: |
FVP_Corstone_SSE-300 -a ./out/Hello/CS300/Debug/Hello.elf -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \
-C mps3_board.uart0.out_file=./out/Hello/CS300/Debug/GCC_fvp_stdout.log \
--simlimit 60 --stat
echo " Show simulation UART output build with GCC Debug"
cat ./out/Hello/CS300/Debug/GCC_fvp_stdout.log
- name: Run Hello build-type Release, GCC
working-directory: ./Hello/
run: |
FVP_Corstone_SSE-300 -a ./out/Hello/CS300/Release/Hello.elf -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \
-C mps3_board.uart0.out_file=./out/Hello/CS300/Release/GCC_fvp_stdout.log \
--simlimit 60 --stat
echo " Show simulation UART output build with GCC Release"
cat ./out/Hello/CS300/Release/GCC_fvp_stdout.log