6 - .github/workflows/corevalidation.yml
7 - .github/workflows/corevalidation-report.yml
8 - CMSIS/Core/Include/**/*
9 - CMSIS/Core/Source/**/*
10 - CMSIS/CoreValidation/**/*
15 group: ${{ github.workflow }}-${{ github.ref }}
16 cancel-in-progress: true
24 compiler: [AC6, GCC, Clang]
26 runs-on: ubuntu-latest
29 ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }}
33 sudo add-apt-repository ppa:deadsnakes/ppa
34 sudo apt-get install libpython3.9
36 - uses: actions/checkout@v4
38 - working-directory: /home/runner
40 GH_TOKEN: ${{ github.token }}
42 if [ -d Cortex_DFP ]; then
45 git checkout -f origin/main
47 gh repo clone ARM-software/Cortex_DFP
50 - uses: actions/setup-python@v5
52 python-version: '3.10'
55 - name: Python requirements
57 pip install -r ./CMSIS/CoreValidation/Project/requirements.txt
60 uses: actions/cache@v3
62 key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}-${{ matrix.compiler }}
64 vcpkg-${{ runner.os }}-${{ runner.arch }}-
65 path: /home/runner/.vcpkg
67 - name: Install LLVM/Clang dependencies
68 if: matrix.compiler == 'Clang'
69 working-directory: /home/runner
72 sudo apt-get install libtinfo5
74 - name: Prepare vcpkg env
75 working-directory: ./CMSIS/CoreValidation/Project
77 . <(curl https://aka.ms/vcpkg-init.sh -L)
78 vcpkg x-update-registry --all
81 - name: Activate Arm tool license
82 working-directory: ./CMSIS/CoreValidation/Project
84 . /home/runner/.vcpkg/vcpkg-init
86 if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
87 armlm activate --code ${{ env.ARM_UBL_ACTIVATION_CODE }}
89 armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0
92 - name: Initialize CodeQL
93 if: matrix.compiler == 'GCC'
94 uses: github/codeql-action/init@v2
97 queries: security-and-quality
99 - uses: ammaraskar/gcc-problem-matcher@master
100 if: matrix.compiler == 'Clang' || matrix.compiler == 'GCC'
103 working-directory: ./CMSIS/CoreValidation/Project
105 . /home/runner/.vcpkg/vcpkg-init
108 echo "Register local Cortex_DFP pack"
109 cpackget add /home/runner/Cortex_DFP/ARM.Cortex_DFP.pdsc
111 echo "Build test projects ..."
112 ./build.py --verbose -c ${{ matrix.compiler }} build || echo "::warning::=== Some configurations failed to build! ==="
114 - name: Perform CodeQL Analysis
115 if: ${{ !cancelled() && matrix.compiler == 'GCC' }}
116 uses: github/codeql-action/analyze@v2
119 if: ${{ env.ARM_UBL_ACTIVATION_CODE }}
120 working-directory: ./CMSIS/CoreValidation/Project
122 . /home/runner/.vcpkg/vcpkg-init
125 echo "Run test projects ..."
126 ./build.py --verbose -c ${{ matrix.compiler }} -d "CM*" run || echo "::warning::==== Some configurations failed to run! ==="
128 - name: Deactivate Arm tool license
130 working-directory: ./CMSIS/CoreValidation/Project
132 . /home/runner/.vcpkg/vcpkg-init
134 if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
135 armlm deactivate --code ${{ env.ARM_UBL_ACTIVATION_CODE }}
137 armlm deactivate --product KEMDK-COM0
140 - name: Archive Test Reports
141 if: ${{ !cancelled() && env.ARM_UBL_ACTIVATION_CODE }}
142 uses: actions/upload-artifact@v3
144 name: test-results-${{ matrix.compiler }}
145 path: ./CMSIS/CoreValidation/Project/build/*.junit
148 needs: [build-and-run]
149 runs-on: ubuntu-latest
151 - name: Archive event file
152 if: ${{ !cancelled() }}
153 uses: actions/upload-artifact@v3
156 path: ${{ github.event_path }}