forked from hicknhack-software/IntervalTimer
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (81 loc) · 2.3 KB
/
tests.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Test Runner
on: push
jobs:
Run-Test-Clang:
name: "Run-Tests-Clang"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.2.1'
- name: Install clang 12
run: |
sudo apt-get update
sudo apt-get install clang-12 llvm-12
- name: Test
run: |
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=clang++-12
cmake --build . --target all
ctest --no-tests=error .
Run-Test-MSCV:
name: "Run-Tests-MSCV"
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.2.1'
- name: Install Tools Ninja and mvsc
uses: ilammy/msvc-dev-cmd@v1
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Test
run: |
mkdir build
cd build
cmake .. -GNinja
cmake --build . --target all
$env:Path += ";${{ github.workspace }}/build/third_party/glog;${{ github.workspace }}/build/bin;"
ctest --rerun-failed --output-on-failure --no-tests=error .
# Static-Analyse-Clang:
# name: "Static-Analyse-Clang"
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
# - name: Install clang 12
# run: |
# sudo apt-get update
# sudo apt-get install clang-12 llvm-12
# - name: Test
# run: |
# mkdir build
# cd build
# cmake .. -DCMAKE_CXX_FLAGS="-fsized-deallocation --analyze" -DCMAKE_CXX_COMPILER=clang++-12
# cmake --build . --target all
# cpp-check:
# name: cppcheck-test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
#
# - name: cppcheck
# uses: deep5050/cppcheck-action@main
#
# - name: Upload report
# uses: actions/upload-artifact@v1
# with:
# name: report
# path: output