-
Notifications
You must be signed in to change notification settings - Fork 69
67 lines (56 loc) · 1.45 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches: [ main ]
pull_request:
env:
CTEST_EXT_COLOR_OUTPUT: TRUE
CTEST_WITH_SUBMIT: FALSE
jobs:
run_linux:
runs-on: ubuntu-20.04
name: Linux / Build and Test
strategy:
matrix:
ctest_model: [Coverage, MemCheck, CodeCheck]
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Install requirements (CodeCheck)
if: matrix.ctest_model == 'CodeCheck'
run: |
sudo apt-get install -y cppcheck
pip install cpplint
- name: Install requirements (MemCheck)
if: matrix.ctest_model == 'MemCheck'
run: |
sudo apt-get update
sudo apt-get install -y valgrind
- name: Run tests
env:
CTEST_BUILD_FLAGS: -j2
CTEST_MODEL: ${{ matrix.ctest_model }}
run: |
ctest -VV -S devtools_test.cmake
# - name: Publish coverage
# if: matrix.ctest_model == 'Coverage'
# uses: codecov/codecov-action@v4
# with:
# fail_ci_if_error: true
# directory: dashboard/build
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run_win:
runs-on: windows-2022
name: Windows / Build and Test
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Run tests
env:
CTEST_TARGET_SYSTEM: "Windows-x64"
CTEST_MODEL: "Experimental"
run: |
ctest -VV -S devtools_test.cmake