File tree Expand file tree Collapse file tree 3 files changed +40
-71
lines changed Expand file tree Collapse file tree 3 files changed +40
-71
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
branches : [main]
7
7
jobs :
8
+ debug :
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ package : [error]
13
+ steps :
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v3.5.3
16
+
17
+ - name : Install cmake-format
18
+ run : pip3 install cmake-format
19
+
20
+ - name : Configure CMake
21
+ run : |
22
+ cmake ${{ matrix.package }} \
23
+ -B ${{ matrix.package }}/build \
24
+ -D CMAKE_CXX_FLAGS=-Werror \
25
+ -D BUILD_TESTING=ON
26
+
27
+ - name : Check code formatting
28
+ run : |
29
+ cmake --build ${{ matrix.package }}/build --target fix-format
30
+ git diff --exit-code HEAD
31
+
32
+ - name : Build project
33
+ run : cmake --build ${{ matrix.package }}/build
34
+
35
+ - name : Run unit tests
36
+ run : ctest --test-dir ${{ matrix.package }}/build --output-on-failure --no-tests=error
37
+
38
+ - name : Check code coverage
39
+ uses : threeal/gcovr-action@main
40
+ with :
41
+ root : ${{ matrix.package }}
42
+ excludes : |
43
+ ${{ matrix.package }}/build/*
44
+ ${{ matrix.package }}/test/*
45
+ fail-under-line : 100
46
+
8
47
release :
9
48
runs-on : ubuntu-latest
10
49
strategy :
14
53
- name : Checkout repository
15
54
uses : actions/checkout@v3.5.3
16
55
17
- - name : Configure and build this project
56
+ - name : Configure and build project
18
57
uses : threeal/cmake-action@v1.1.0
19
58
with :
20
59
source-dir : ${{ matrix.package }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Overview
2
2
3
3
[ ![ build status] ( https://img.shields.io/github/actions/workflow/status/threeal/cpp/build.yml?branch=main )] ( https://github.com/threeal/cpp/actions/workflows/build.yml )
4
- [ ![ test status] ( https://img.shields.io/github/actions/workflow/status/threeal/cpp/test.yml?label=test&branch=main )] ( https://github.com/threeal/cpp/actions/workflows/test.yml )
5
4
6
5
A comprehensive collection of [ C++] ( https://isocpp.org/ ) utility packages.
7
6
You can’t perform that action at this time.
0 commit comments