-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.16 KB
/
cpp.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
name: C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update apt repositories
run: sudo apt -y update
- name: Install dependencies
run: sudo apt -y install check libtool-bin valgrind
- name: Bootstrap project
run: ./bootstrap.sh
- name: Configure project with g++ compiler (all options enabled)
run: >
./configure CC=g++
--enable-debug=yes
--with-test-binary=yes
--with-check-framework=yes
--with-psql-module=yes
--with-csv-module=yes
- name: Compile project (all options enabled)
run: make
- name: Run tests (all options enabled)
run: make check
- name: Configure project with g++ compiler (all options disabled)
run: >
./configure CC=g++
--enable-debug=no
--with-test-binary=no
--with-check-framework=yes
--with-psql-module=no
--with-csv-module=no
- name: Compile project (all options disabled)
run: make
- name: Run tests (all options disabled)
run: make check