Skip to content

preliminary file redirection support for IAR #67

preliminary file redirection support for IAR

preliminary file redirection support for IAR #67

Workflow file for this run

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@v4
with:
key: packs-${{ github.run_id }}
restore-keys: |
packs-
path: /home/runner/.cache/arm/packs
- name: Install LLVM dependencies and tools
working-directory: /home/runner
run: |
sudo apt-get update
sudo apt-get install libtinfo5
- name: Prepare vcpkg env
uses: JonatanAntoni/actions/vcpkg@main
with:
config: ./example/vcpkg-configuration.json
- name: Install required packs
run: |
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
run: |
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: |
build_steps=(build)
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
build_steps+=(run)
fi
./build.py --verbose -c AC6 -c GCC -c Clang clean ${build_steps[@]}
- name: Perform CodeQL Analysis
if: ${{ !cancelled() }}
uses: github/codeql-action/analyze@v3
- name: Deactivate Arm tool license
if: always()
run: |
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
armlm deactivate --code ${{ env.ARM_UBL_ACTIVATION_CODE }}
else
armlm deactivate --product KEMDK-COM0
fi