forked from eclipse-openbsw/openbsw
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (28 loc) · 1.07 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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