|
1 | | -name: "Hello: Test Build and Execution" |
2 | | - |
3 | | -on: |
4 | | - workflow_dispatch: |
5 | | - pull_request: |
6 | | - branches: [main] |
7 | | - paths: |
8 | | - - Hello/** |
9 | | - - .github/workflows/Hello-CI.yml |
10 | | - push: |
11 | | - branches: [main] |
12 | | - paths: |
13 | | - - Hello/** |
14 | | - - .github/workflows/Hello-CI.yml |
15 | | - schedule: |
16 | | - - cron: '00 20 * * 6' |
17 | | - |
18 | | -concurrency: |
19 | | - group: ${{ github.workflow }}-${{ github.ref }} |
20 | | - cancel-in-progress: true |
21 | | - |
22 | | -permissions: read-all |
23 | | - |
24 | | -jobs: |
25 | | - build-and-test: |
26 | | - runs-on: ubuntu-latest |
27 | | - strategy: |
28 | | - matrix: |
29 | | - toolchain: [AC6, GCC, CLANG] |
30 | | - build_type: [Debug, Release] |
31 | | - |
32 | | - steps: |
33 | | - - name: Harden the runner (Audit all outbound calls) |
34 | | - uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 |
35 | | - with: |
36 | | - egress-policy: audit |
37 | | - |
38 | | - - name: Checkout repo |
39 | | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
40 | | - |
41 | | - - name: Install tools |
42 | | - uses: ARM-software/cmsis-actions/vcpkg@75fd924d583d17eacdbfaf77f21ca09e335c3c79 # v1 |
43 | | - with: |
44 | | - config: ".ci/vcpkg-configuration.json" |
45 | | - |
46 | | - - name: Activate Arm tool license |
47 | | - uses: ARM-software/cmsis-actions/armlm@75fd924d583d17eacdbfaf77f21ca09e335c3c79 # v1 |
48 | | - |
49 | | - - name: Set up Python |
50 | | - uses: actions/setup-python@v6 |
51 | | - with: |
52 | | - python-version: '3.13' |
53 | | - |
54 | | - - name: Build Hello with ${{ matrix.toolchain }} |
55 | | - working-directory: ./Hello/ |
56 | | - run: | |
57 | | - echo "Building with toolchain: ${{ matrix.toolchain }}" |
58 | | - cbuild Hello.csolution.yml --packs --toolchain ${{ matrix.toolchain }} |
59 | | -
|
60 | | - - name: Run Hello Simulation ${{ matrix.toolchain }}-${{ matrix.build_type }} |
61 | | - working-directory: ./Hello/ |
62 | | - run: | |
63 | | - # Determine file extension |
64 | | - EXT="elf" |
65 | | - if [[ "${{ matrix.toolchain }}" == "AC6" ]]; then EXT="axf"; fi |
66 | | -
|
67 | | - EXEC=./out/Hello/CS300/${{ matrix.build_type }}/Hello.${EXT} |
68 | | - LOG=./out/Hello/CS300/${{ matrix.build_type }}/${{ matrix.toolchain }}_fvp_stdout.log |
69 | | -
|
70 | | - FVP_Corstone_SSE-300 \ |
71 | | - -a $EXEC \ |
72 | | - -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \ |
73 | | - -C mps3_board.uart0.out_file=$LOG \ |
74 | | - --simlimit 60 --stat |
75 | | -
|
76 | | - echo "Show simulation UART output for ${{ matrix.toolchain }} ${{ matrix.build_type }}" |
77 | | - cat $LOG |
| 1 | +name: "Hello: Test Build and Execution" |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + pull_request: |
| 6 | + branches: [main] |
| 7 | + paths: |
| 8 | + - Hello/** |
| 9 | + - .github/workflows/Hello-CI.yml |
| 10 | + push: |
| 11 | + branches: [main] |
| 12 | + paths: |
| 13 | + - Hello/** |
| 14 | + - .github/workflows/Hello-CI.yml |
| 15 | + schedule: |
| 16 | + - cron: '00 20 * * 6' |
| 17 | + |
| 18 | +concurrency: |
| 19 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 20 | + cancel-in-progress: true |
| 21 | + |
| 22 | +permissions: read-all |
| 23 | + |
| 24 | +jobs: |
| 25 | + build-and-test: |
| 26 | + runs-on: ubuntu-latest |
| 27 | + strategy: |
| 28 | + matrix: |
| 29 | + toolchain: [AC6, GCC, CLANG] |
| 30 | + build_type: [Debug, Release] |
| 31 | + |
| 32 | + steps: |
| 33 | + - name: Checkout repo |
| 34 | + uses: actions/checkout@v7 |
| 35 | + |
| 36 | + - name: Install tools |
| 37 | + uses: ARM-software/cmsis-actions/vcpkg@v1 |
| 38 | + with: |
| 39 | + config: ".ci/vcpkg-configuration.json" |
| 40 | + |
| 41 | + - name: Activate Arm tool license |
| 42 | + uses: ARM-software/cmsis-actions/armlm@v1 |
| 43 | + |
| 44 | + - name: Set up Python |
| 45 | + uses: actions/setup-python@v7 |
| 46 | + with: |
| 47 | + python-version: '3.14' |
| 48 | + |
| 49 | + - name: Build Hello with ${{ matrix.toolchain }} |
| 50 | + working-directory: ./Hello/ |
| 51 | + run: | |
| 52 | + echo "Building with toolchain: ${{ matrix.toolchain }}" |
| 53 | + cbuild Hello.csolution.yml --packs --toolchain ${{ matrix.toolchain }} |
| 54 | +
|
| 55 | + - name: Run Hello Simulation ${{ matrix.toolchain }}-${{ matrix.build_type }} |
| 56 | + working-directory: ./Hello/ |
| 57 | + run: | |
| 58 | + # Determine file extension |
| 59 | + EXT="elf" |
| 60 | + if [[ "${{ matrix.toolchain }}" == "AC6" ]]; then EXT="axf"; fi |
| 61 | +
|
| 62 | + EXEC=./out/Hello/CS300/${{ matrix.build_type }}/Hello.${EXT} |
| 63 | + LOG=./out/Hello/CS300/${{ matrix.build_type }}/${{ matrix.toolchain }}_fvp_stdout.log |
| 64 | +
|
| 65 | + FVP_Corstone_SSE-300 \ |
| 66 | + -a $EXEC \ |
| 67 | + -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \ |
| 68 | + -C mps3_board.uart0.out_file=$LOG \ |
| 69 | + --simlimit 60 --stat |
| 70 | +
|
| 71 | + echo "Show simulation UART output for ${{ matrix.toolchain }} ${{ matrix.build_type }}" |
| 72 | + cat $LOG |
0 commit comments