Skip to content

Commit

Permalink
CI: Add clang to posix build matrix
Browse files Browse the repository at this point in the history
Change-Id: I406f96533da32f433e7d3b8361b3d8df0cea4448
  • Loading branch information
ThoFrank committed Feb 11, 2025
1 parent 7b315ec commit 9b0cf3f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [posix, s32k148]
platform: [posix-gcc, posix-clang, s32k148]
cpp-standard: [14, 17, 20]

steps:
Expand Down Expand Up @@ -36,8 +36,15 @@ jobs:
with:
release: '10.3-2021.10'

- name: Install LLVM and Clang
if: ${{ matrix.platform == 'posix-clang' }}
uses: KyleMayes/install-llvm-action@v2
with:
version: "17"
env: true

- name: Configure CMake for POSIX
if: ${{ matrix.platform == 'posix' && steps.cache-cmake.outputs.cache-hit != 'true' }}
if: ${{ startsWith(matrix.platform, 'posix') && steps.cache-cmake.outputs.cache-hit != 'true' }}
run: |
cmake \
-B cmake-build-posix \
Expand All @@ -56,4 +63,4 @@ jobs:
- name: Build for ${{ matrix.platform }}
if: steps.cache-cmake.outputs.cache-hit != 'true'
run: cmake --build cmake-build-${{ matrix.platform }} --target app.referenceApp -j
run: cmake --build cmake-build-${{ startsWith(matrix.platform, 'posix') && 'posix' || matrix.platform }} --target app.referenceApp -j

0 comments on commit 9b0cf3f

Please sign in to comment.