Preliminary support for multithreading in IAR #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Example | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- .github/workflows/example.yml | |
- example/**/* | |
- include/**/* | |
- source/**/* | |
- ARM.CMSIS-Compiler.pdsc | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
example: | |
runs-on: ubuntu-latest | |
env: | |
ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Python requirements | |
run: | | |
pip install -r ./example/requirements.txt | |
- name: Cache packs | |
uses: actions/cache@v3 | |
with: | |
key: packs-${{ github.run_id }} | |
restore-keys: | | |
packs- | |
path: /home/runner/.cache/arm/packs | |
- name: Cache vcpkg | |
uses: actions/cache@v3 | |
with: | |
key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}-${{ matrix.compiler }} | |
restore-keys: | | |
vcpkg-${{ runner.os }}-${{ runner.arch }}- | |
path: /home/runner/.vcpkg | |
- name: Install LLVM dependencies and tools | |
working-directory: /home/runner | |
run: | | |
sudo apt-get update | |
sudo apt-get install libtinfo5 | |
- name: Prepare vcpkg env | |
working-directory: ./example | |
run: | | |
. <(curl https://aka.ms/vcpkg-init.sh -L) | |
vcpkg x-update-registry --all | |
vcpkg activate | |
cpackget add ../ARM.CMSIS-Compiler.pdsc | |
curl -LO https://github.com/ARM-software/CMSIS_6/releases/download/dev%2Fv6.0.0-dev53/packlist.txt | |
cpackget add -a -f packlist.txt | |
- name: Activate Arm tool license | |
working-directory: ./example | |
run: | | |
. /home/runner/.vcpkg/vcpkg-init | |
vcpkg activate | |
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then | |
armlm activate --code ${{ env.ARM_UBL_ACTIVATION_CODE }} | |
else | |
armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0 | |
fi | |
- uses: ammaraskar/gcc-problem-matcher@master | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: cpp | |
queries: security-and-quality | |
- name: Build and run example | |
working-directory: ./example | |
run: | | |
. /home/runner/.vcpkg/vcpkg-init | |
vcpkg activate | |
./build.py --verbose -c AC6 -c GCC -c Clang clean build run | |
- name: Perform CodeQL Analysis | |
if: ${{ !cancelled() }} | |
uses: github/codeql-action/analyze@v3 | |
- name: Deactivate Arm tool license | |
if: always() | |
working-directory: ./example | |
run: | | |
. /home/runner/.vcpkg/vcpkg-init | |
vcpkg activate | |
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then | |
armlm deactivate --code ${{ env.ARM_UBL_ACTIVATION_CODE }} | |
else | |
armlm deactivate --product KEMDK-COM0 | |
fi |