Skip to content

Commit 6dc1a96

Browse files
Debug: Add ARM and ASAN builds for clang
Debug ASAN Relates-To: OCMAM-447 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent e7eef11 commit 6dc1a96

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/psv_pipelines.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,42 @@ jobs:
182182
BUILD_TYPE: RelWithDebInfo
183183
CC: clang-11
184184
CXX: clang++-11
185-
CXXFLAGS: -Wno-deprecated-copy
185+
CXXFLAGS: -Wno-deprecated-copy -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -fsanitize-recover=address -shared-libasan
186+
LD_LIBRARY_PATH: "/usr/lib/llvm-11/lib/clang/11.1.0/lib/linux/"
186187
steps:
187188
- name: Check out repository
188189
uses: actions/checkout@v4
189190
- name: Install Ubuntu dependencies
190191
run: sudo apt-get update -y && sudo apt-get install clang-11 ccache libcurl4-openssl-dev -y --no-install-recommends --fix-missing
191192
shell: bash
193+
- name: Check ASAN RT
194+
run: find /usr/lib -name '*clang_rt.asan*'
195+
shell: bash
196+
- name: Compile project on Clang
197+
run: scripts/linux/psv/build_psv.sh
198+
shell: bash
199+
- name: Run unit and integration tests
200+
run: scripts/linux/psv/test_psv.sh
201+
shell: bash
202+
203+
psv-linux-22-04-arm-clang-build:
204+
name: PSV.Linux.22.04.ARM64.clang.Tests
205+
runs-on: ubuntu-22.04
206+
env:
207+
BUILD_TYPE: RelWithDebInfo
208+
CC: clang-11
209+
CXX: clang++-11
210+
CXXFLAGS: -Wno-deprecated-copy -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -fsanitize-recover=address -shared-libasan
211+
LD_LIBRARY_PATH: "/usr/lib/llvm-11/lib/clang/11.1.0/lib/linux/"
212+
steps:
213+
- name: Check out repository
214+
uses: actions/checkout@v4
215+
- name: Install Ubuntu dependencies
216+
run: sudo apt-get update -y && sudo apt-get install clang-11 ccache libcurl4-openssl-dev -y --no-install-recommends --fix-missing
217+
shell: bash
218+
- name: Check ASAN RT
219+
run: find /usr/lib -name '*clang_rt.asan*'
220+
shell: bash
192221
- name: Compile project on Clang
193222
run: scripts/linux/psv/build_psv.sh
194223
shell: bash

0 commit comments

Comments
 (0)