-
Notifications
You must be signed in to change notification settings - Fork 45
31 lines (29 loc) · 972 Bytes
/
linux-ubsan.yml
File metadata and controls
31 lines (29 loc) · 972 Bytes
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
name: 'Linux + UB Sanitizer'
on:
workflow_call:
inputs:
run_build:
required: true
type: boolean
push:
branches: [ 'main' ]
jobs:
clang-ubsan:
name: Undefined Behavior Sanitizer Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/vectorgrp/sil-kit-docker-build/sil-kit-ci-public-runner:main
if: (inputs.run_build == true) || (github.event_name == 'push')
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: relwithdebinfo
cmake-args: "-D SILKIT_BUILD_DASHBOARD=OFF \
-DCMAKE_C_COMPILER=clang-18 \
-DCMAKE_CXX_COMPILER=clang++-18 \
-DCMAKE_CXX_FLAGS='-fsanitize=undefined -fno-omit-frame-pointer' \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-Og -g3'"
artifact-label: ${{ github.job }}