Skip to content

Commit

Permalink
compile: common set of cmake flags
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik <[email protected]>
  • Loading branch information
Dominik-K committed Dec 21, 2023
1 parent f65b397 commit 1b93218
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .ci/build-kit/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ cmake \
-B build \
-S "$EXT_MOUNT/source" \
-G Ninja \
-DEVC_ENABLE_CCACHE=1 \
-DISO15118_2_GENERATE_AND_INSTALL_CERTIFICATES=OFF \
-DCMAKE_INSTALL_PREFIX="$WORKSPACE_PATH/dist" \
-DBUILD_TESTING=ON
-DBUILD_TESTING=ON \
"${CMAKE_FLAGS_EXTRA}"

ninja -j$(nproc) -C build
5 changes: 5 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
description: The ref (branch, tag, commit-hash) of the `inputs.repository`
type: string
required: true
cmake_flags_extra:
description: additional flags to add to the common set of flags (see `.ci/build-kit/compile.sh`)
type: string
run_unit_tests:
description: Whether to run unit-tests or not
type: boolean
Expand Down Expand Up @@ -78,6 +81,8 @@ jobs:
docker pull --quiet ghcr.io/everest/build-kit-alpine:latest
docker image tag ghcr.io/everest/build-kit-alpine:latest build-kit
- name: Compile
env:
CMAKE_FLAGS_EXTRA: ${{ inputs.cmake_flags_extra || '-DEVC_ENABLE_CCACHE=1 -DISO15118_2_GENERATE_AND_INSTALL_CERTIFICATES=OFF' }}
run: |
docker run \
--volume "$(pwd):/ext" \
Expand Down

0 comments on commit 1b93218

Please sign in to comment.