]> begriffs open source - cmsis/blob - .github/workflows/core.yml
Updates for upcoming release
[cmsis] / .github / workflows / core.yml
1 name: Core Checks
2 on:
3   workflow_dispatch:
4   pull_request:
5     paths: 
6       - .github/workflows/core.yml
7       - CMSIS/Core/Include/**/*
8       - CMSIS/Core/Source/**/*
9       - CMSIS/Core/Test/**/*
10   push:
11     branches: [main]
12   
13 concurrency:
14   group: ${{ github.workflow }}-${{ github.ref }}
15   cancel-in-progress: true
16
17 jobs:
18   lit:
19     runs-on: ubuntu-latest
20
21     env:
22       ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }}
23
24     steps:
25       - uses: actions/checkout@v4
26       
27       - uses: actions/setup-python@v5
28         with:
29           python-version: '3.10'    
30           cache: 'pip'
31
32       - name: Python requirements
33         run: |
34           pip install -r ./CMSIS/Core/Test/requirements.txt
35
36       - name: Install LLVM dependencies and tools
37         working-directory: /home/runner
38         run: |
39           sudo apt-get update
40           sudo apt-get install libtinfo5 llvm-15-tools
41           sudo ln -s /usr/bin/FileCheck-15 /usr/bin/FileCheck
42     
43       - name: Activate vcpkg environment
44         uses: ARM-software/cmsis-actions/vcpkg@v1
45         with:
46           config: ./CMSIS/Core/Test/vcpkg-configuration.json
47           
48       - name: Activate Arm tool license
49         uses: ARM-software/cmsis-actions/armlm@v1
50         with:
51           code: "${{ env.ARM_UBL_ACTIVATION_CODE }}"
52
53       - uses: ammaraskar/gcc-problem-matcher@master
54
55       - name: Run LIT
56         working-directory: ./CMSIS/Core/Test
57         run: |
58           ./build.py lit
59
60       - name: Publish Test Results
61         if: ${{ !cancelled() }}
62         uses: EnricoMi/publish-unit-test-result-action@v2
63         with:
64           report_individual_runs: true
65           files: ./CMSIS/Core/Test/*.xunit