forked from fluffos/fluffos
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.08 KB
/
ci.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
name: CI on ubuntu
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
build:
strategy:
fail-fast: false
matrix:
compiler:
- CC: "gcc"
CXX: "g++"
- CC: "clang"
CXX: "clang++"
build: ["Debug", "RelWithDebInfo"]
os: ["ubuntu-18.04"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt update
sudo apt install -y build-essential clang-6.0 autoconf automake bison expect libmysqlclient-dev libpcre3-dev libpq-dev libsqlite3-dev libssl-dev libtool libz-dev telnet libgtest-dev libjemalloc-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 .. && make -j 2 install && cd ..
- name: testsuite
run: cd testsuite && ../build/bin/driver etc/config.test -ftest