-
Notifications
You must be signed in to change notification settings - Fork 37
65 lines (55 loc) · 1.62 KB
/
build-and-test-ubsan.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: build-and-test-ubsan
on: # yamllint disable-line rule:truthy
push:
branches:
- master
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"
- "**/benchmark/**"
- "version.txt"
- "build.sh"
workflow_dispatch:
inputs:
pr:
description: "Pull request#"
required: false
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
jobs:
build-and-test-ubsan:
name: "ubuntu clang"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Prepare
run: bash ${{github.workspace}}/.github/workflows/prepare-env.sh 14
- name: Generate Makefile
run: clang -v && export CC=`which clang` CXX=`which clang++` && cmake -G Ninja -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSANITIZE=undefined
- name: Build
working-directory: ${{github.workspace}}/build
run: ninja -j 10
- name: Run unit Tests
working-directory: ${{github.workspace}}/build
run: ./src/rk_unit_tests --gtest_color=yes
- name: Run integration Tests
working-directory: ${{github.workspace}}/tests/integration
run: bash ${{github.workspace}}/.github/workflows/run-integration-test.sh ${{github.workspace}}/tests/integration