-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 1.04 KB
/
thread-sanitizer-test.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
name: Thread Sanitizer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup clang
uses: egor-tensin/setup-clang@v1
- name: install dependencies
run: sudo apt update && sudo apt install -y apt-utils build-essential git make cmake libzstd-dev liblz4-dev
- name: install boost
run: sudo apt update && sudo apt install -y libboost-dev libboost-program-options-dev libboost-regex-dev
- name: git submodules
run: git submodule update --init --recursive
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRE2_BUILD_TESTING=off -DCMAKE_CXX_FLAGS="-fsanitize=thread"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}