Skip to content

GitHub action for code coverage #99

GitHub action for code coverage

GitHub action for code coverage #99

Workflow file for this run

name: Build S32k and posix platform
on: [push,pull_request]
jobs:
run-command:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [posix, s32k148]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.22.x'
- name: Set up ARM GCC
if: ${{ matrix.platform == 's32k148' }}
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '10.3-2021.10'
- name: Configure CMake for POSIX
if: ${{ matrix.platform == 'posix' }}
run: cmake -B cmake-build-posix -S executables/referenceApp
- name: Configure CMake for S32K148
if: ${{ matrix.platform == 's32k148' }}
run: cmake -B cmake-build-s32k148 -S executables/referenceApp -DBUILD_TARGET_PLATFORM="S32K148EVB" --toolchain ../../admin/cmake/ArmNoneEabi.cmake
- name: Build for ${{ matrix.platform }}
run: cmake --build cmake-build-${{ matrix.platform }} --target app.referenceApp -j