Skip to content

Commit

Permalink
Merge branch 'eclipse-openbsw:main' into coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmo authored Nov 25, 2024
2 parents c96b36b + 4de3140 commit 35da60b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build S32k and posix platform

on: [push,pull_request]
on: [push, pull_request]

jobs:
run-command:
Expand All @@ -13,6 +13,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Cache CMake files
id: cache-cmake
uses: actions/cache@v3
with:
path: |
cmake-build-posix
cmake-build-s32k148
key: ${{ runner.os }}-cmake-${{ matrix.platform }}-${{ hashFiles('**/*.cpp', '**/*.h', '**/*.cmake', '**/*.txt', '**/*.c', '**/*.s', 'admin/cmake/ArmNoneEabi.cmake') }}
restore-keys: |
${{ runner.os }}-cmake-${{ matrix.platform }}-
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v2
with:
Expand All @@ -25,15 +36,13 @@ jobs:
release: '10.3-2021.10'

- name: Configure CMake for POSIX
if: ${{ matrix.platform == 'posix' }}
if: ${{ matrix.platform == 'posix' && steps.cache-cmake.outputs.cache-hit != 'true' }}
run: cmake -B cmake-build-posix -S executables/referenceApp

- name: Configure CMake for S32K148
if: ${{ matrix.platform == 's32k148' }}
if: ${{ matrix.platform == 's32k148' && steps.cache-cmake.outputs.cache-hit != 'true' }}
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



if: steps.cache-cmake.outputs.cache-hit != 'true'
run: cmake --build cmake-build-${{ matrix.platform }} --target app.referenceApp -j
2 changes: 1 addition & 1 deletion doc/github_pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<h1>Eclipse OpenBSW Documentation</h1>
<h2><a href="sphinx_docs/doc/index.html">Welcome to Eclipse OpenBSW</a></h2>
<h3><a href="doxygenOut/html/index.html">Doxygen-generated API docs</a></h3>
<h3><a href="doxygen_docs/index.html">Doxygen-generated API docs</a></h3>
<h3>Coverage reports</h3>
<ul>
<li><a href="code-coverage/index.html">Code coverage report</a></li>
Expand Down

0 comments on commit 35da60b

Please sign in to comment.