forked from fluffos/fluffos
-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (34 loc) · 1.03 KB
/
ci-sanitizer.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
name: CI with Sanitizer
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
build:
strategy:
fail-fast: false
matrix:
compiler:
- CC: "clang"
CXX: "clang++"
build: ["Debug", "RelWithDebInfo"]
runs-on: "ubuntu-20.04"
steps:
- uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt update
sudo apt install -y build-essential autoconf automake bison expect libmysqlclient-dev libpcre3-dev libpq-dev libsqlite3-dev libssl-dev libtool libz-dev telnet libgtest-dev libjemalloc-dev libdw-dev
sudo apt remove libgcc-11-dev gcc-11
- name: compile
env: ${{ matrix.compiler }}
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DPACKAGE_DB_SQLITE=2 -DENABLE_SANITIZER=ON .. && make -j 2 install && cd ..
- name: testsuite
run: cd testsuite && ../build/bin/driver etc/config.test -ftest