Skip to content

Commit e7a0373

Browse files
CI: Add build with OLP_SDK_NO_EXCEPTION=ON (#1661)
To catch issues in this kind of build earlier Relates-To: OCMAM-442 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent df55ff5 commit e7a0373

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/psv_pipelines.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ jobs:
9191
run: gcc --version && ./scripts/linux/psv/build_psv.sh
9292
shell: bash
9393

94+
psv-linux-22-04-gcc11-build-no-exceptions:
95+
name: PSV.Linux.22.04.gcc11.OLP_SDK_NO_EXCEPTION=ON
96+
runs-on: ubuntu-22.04
97+
env:
98+
BUILD_TYPE: RelWithDebInfo
99+
steps:
100+
- name: Check out repository
101+
uses: actions/checkout@v4
102+
- name: Install Ubuntu dependencies
103+
run: sudo apt-get update && sudo apt-get install -y ccache libssl-dev libcurl4-openssl-dev --no-install-recommends
104+
shell: bash
105+
- name: Compile project with cmake and ccache
106+
run: gcc --version && ./scripts/linux/psv/build_psv_no_exceptions.sh
107+
shell: bash
108+
94109
psv-linux-latest-gcc14-build-no-cache:
95110
name: PSV.Linux.latest.gcc14.OLP_SDK_ENABLE_DEFAULT_CACHE=OFF
96111
runs-on: ubuntu-latest
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash -ex
2+
#
3+
# Copyright (C) 2026 HERE Europe B.V.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# SPDX-License-Identifier: Apache-2.0
18+
# License-Filename: LICENSE
19+
20+
# Show initial ccache data
21+
ccache -s
22+
23+
mkdir -p build
24+
cd build
25+
26+
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
27+
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror $CXXFLAGS" \
28+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
29+
-DOLP_SDK_BUILD_EXAMPLES=ON \
30+
-DBUILD_SHARED_LIBS=ON \
31+
-DOLP_SDK_NO_EXCEPTION=ON \
32+
..
33+
34+
cmake --build . -- -j$(nproc)
35+
36+
# Show last ccache data
37+
ccache -s

0 commit comments

Comments
 (0)