-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (62 loc) · 1.86 KB
/
ci.yaml
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
---
name: Continuous Integration
on: # yamllint disable-line rule:truthy
push:
branches: [devel, main]
pull_request:
jobs:
build_and_test:
runs-on: ubuntu-22.04
steps:
- run: >
sudo apt update && sudo apt install -y
cmake
libassuan-dev
libcreaterepo-c-dev
libgpg-error-dev
libgpgme-dev
libgtest-dev
make
valgrind
env:
DEBIAN_FRONTEND: noninteractive
- uses: actions/checkout@v2
- run: mkdir -p build
- run: >
cmake ..
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-DCMAKE_BUILD_TYPE=Debug
"-DCMAKE_C_FLAGS=-Werror -ftest-coverage -fprofile-arcs -O0"
"-DCMAKE_CXX_FLAGS=-Werror -ftest-coverage -fprofile-arcs -O0"
"-DMEMORYCHECK_COMMAND_OPTIONS=-q --tool=memcheck --leak-check=yes
--error-exitcode=1 --gen-suppressions=all"
working-directory: ${{github.workspace}}/build
- run: cmake --build . -j2
working-directory: ${{github.workspace}}/build
- run: >
ctest
--output-on-failure
-j2
-D ExperimentalMemCheck
working-directory: ${{github.workspace}}/build
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: MemoryChecker
if-no-files-found: ignore
path: |
${{github.workspace}}/build/Testing/Temporary/MemoryChecker.*.log
- run: >
find build -name '*.gcno' -not -name '*CompilerId.gcno' | xargs gcov
-pb
--source-prefix ${{github.workspace}}
--relative-only
--demangled-names
- uses: codecov/codecov-action@v3
with:
flags: unittests,${{runner.os}}
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yamllint .