-
Notifications
You must be signed in to change notification settings - Fork 144
93 lines (77 loc) · 3.04 KB
/
core.yml
File metadata and controls
93 lines (77 loc) · 3.04 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
85
86
87
88
89
90
91
92
93
name: Core Checks
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/core.yml
- CMSIS/Core/Include/**/*
- CMSIS/Core/Source/**/*
- CMSIS/Core/Test/**/*
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lit:
runs-on: ubuntu-22.04
env:
ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }}
CLANG_TI_VERSION: "5.1.0.LTS"
CLANG_TI_TC_SUFFIX: "5_1_0"
CLANG_TI_INSTALL_PATH: "/home/runner/"
CLANG_TI_SHA256: "c758668b78c080be5ec75393cdd09d077742fd1183aa0c181318a0119d58c4d0"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.10'
cache: 'pip'
- name: Python requirements
run: |
pip install -r ./CMSIS/Core/Test/requirements.txt
- name: Install LLVM dependencies and tools
working-directory: /home/runner
run: |
sudo apt-get update
sudo apt-get install libtinfo5 llvm-15-tools
sudo ln -s /usr/bin/FileCheck-15 /usr/bin/FileCheck
- name: Activate vcpkg environment
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
config: ./CMSIS/Core/Test/vcpkg-configuration.json
- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
with:
code: "${{ env.ARM_UBL_ACTIVATION_CODE }}"
- uses: ammaraskar/gcc-problem-matcher@master
- name: Set TI ARM CLANG Environment Variables and Path
run: |
echo "CLANG_TI_PATH=${{ env.CLANG_TI_INSTALL_PATH }}ti-cgt-armllvm_${{ env.CLANG_TI_VERSION }}" >> $GITHUB_ENV
echo "CLANG_TI_TOOLCHAIN_${{ env.CLANG_TI_TC_SUFFIX }}=${{ env.CLANG_TI_INSTALL_PATH }}ti-cgt-armllvm_${{ env.CLANG_TI_VERSION }}/bin" >> $GITHUB_ENV
- name: Cache TI ARM CLANG
id: cache-ti-arm-clang
uses: actions/cache@v5
with:
path: ${{ env.CLANG_TI_PATH }}
key: ${{ runner.os }}-ti-arm-clang-${{ env.CLANG_TI_VERSION }}
- name: Download and Verify TI ARM CLANG Installer
working-directory: /home/runner
if: steps.cache-ti-arm-clang.outputs.cache-hit != 'true'
run: |
FILE="ti_cgt_armllvm_${{ env.CLANG_TI_VERSION }}_linux-x64_installer.bin"
URL="https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-ayxs93eZNN/${{ env.CLANG_TI_VERSION }}/${FILE}"
curl -L "$URL" -o "$FILE"
echo "${{ env.CLANG_TI_SHA256 }} $FILE" | sha256sum --check
chmod +x "$FILE"
./"$FILE" --mode unattended --prefix "${{ env.CLANG_TI_INSTALL_PATH }}"
- name: Run LIT
working-directory: ./CMSIS/Core/Test
run: |
./build.py lit
- name: Publish Test Results
if: ${{ !cancelled() }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
report_individual_runs: true
files: ./CMSIS/Core/Test/*.xunit