Skip to content

Commit

Permalink
Strip down build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JonatanAntoni committed Apr 30, 2024
1 parent 72bf0f6 commit 4aa4fc0
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ permissions:
actions: read
security-events: write

env:
ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }}

jobs:
build-and-run:
strategy:
Expand Down Expand Up @@ -57,33 +54,17 @@ jobs:

- 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
armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0
- uses: ammaraskar/gcc-problem-matcher@master
if: matrix.compiler == 'GCC'

- name: Initialize CodeQL
if: matrix.compiler == 'GCC'
uses: github/codeql-action/init@v3
with:
languages: cpp
queries: security-and-quality

- name: Build
run: |
echo "Building get started example ..."
cbuild get_started.csolution.yml --packs --update-rte --context .debug+avh --toolchain ${{ matrix.compiler }}
- name: Perform CodeQL Analysis
if: ${{ !cancelled() && matrix.compiler == 'GCC' }}
uses: github/codeql-action/analyze@v3

- name: Execute
if: ${{ env.ARM_UBL_ACTIVATION_CODE }}
run: |
echo "Running get started example ..."
ext=""
Expand All @@ -96,12 +77,3 @@ jobs:
echo "Checking output..."
grep "Hello World" model.log | wc -l
test "$(grep "Hello World" model.log | wc -l)" -eq 10
- 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

0 comments on commit 4aa4fc0

Please sign in to comment.