1 name: Build CoreValidation tests
10 group: ${{ github.workflow }}-${{ github.ref }}
11 cancel-in-progress: true
16 runs-on: ubuntu-latest
18 - uses: actions/checkout@v3
20 - working-directory: /home/runner
22 GH_TOKEN: ${{ github.token }}
24 if [ -d CMSIS-DFP ]; then
27 git checkout -f origin/main
29 gh repo clone ARM-software/CMSIS-DFP
32 - uses: actions/setup-python@v4
34 python-version: '3.10'
38 uses: actions/cache@v3
41 path: /home/runner/.vcpkg
43 - name: Cache Arm Compiler 6
44 uses: actions/cache@v3
46 key: armcompiler-6.20.0
47 path: /home/runner/standalone-linux-x86_64-rel.tgz
49 - name: Install Arm Compiler 6
50 working-directory: /home/runner
52 test -f standalone-linux-x86_64-rel.tgz || \
53 wget https://artifacts.keil.arm.com/arm-compiler/6.20/21/standalone-linux-x86_64-rel.tgz
54 mkdir -p arm-compiler-6.20.0
55 tar xf standalone-linux-x86_64-rel.tgz -C arm-compiler-6.20.0
56 echo "AC6_TOOLCHAIN_6_20_0=$(pwd)/arm-compiler-6.20.0/bin" >> $GITHUB_ENV
58 - name: Initialize CodeQL
59 uses: github/codeql-action/init@v2
62 queries: security-and-quality
65 working-directory: ./CMSIS/CoreValidation/Project
67 echo "Install Python requirements"
68 pip install -r requirements.txt
70 echo "Activate vcpkg environment"
71 . <(curl https://aka.ms/vcpkg-init.sh -L)
74 echo "Activate Arm tool license"
75 ${AC6_TOOLCHAIN_6_20_0}/armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0
77 echo "Register local CMSIS-DFP pack"
78 cpackget add /home/runner/CMSIS-DFP/ARM.CMSIS_DFP.pdsc
80 echo "Run build script"
81 ./build.py --verbose -m FVP -c GCC -c AC6 build || echo "=== Something failed! ==="
83 - name: Perform CodeQL Analysis
85 uses: github/codeql-action/analyze@v2