|
8 | 8 | jobs:
|
9 | 9 | debug:
|
10 | 10 | runs-on: ubuntu-latest
|
11 |
| - strategy: |
12 |
| - matrix: |
13 |
| - package: [error] |
14 | 11 | steps:
|
15 | 12 | - name: Checkout repository
|
16 | 13 | uses: actions/checkout@v4.1.1
|
17 | 14 |
|
18 | 15 | - name: Configure CMake
|
19 | 16 | run: |
|
20 |
| - cmake ${{ matrix.package }} \ |
21 |
| - -B ${{ matrix.package }}/build \ |
| 17 | + cmake . \ |
| 18 | + -B build \ |
22 | 19 | -D BUILD_TESTING=ON \
|
23 | 20 | -D CHECK_FORMAT=ON \
|
24 | 21 | -D CHECK_WARNING=ON \
|
25 | 22 | -D CHECK_COVERAGE=ON
|
26 | 23 |
|
27 | 24 | - name: Build project
|
28 |
| - run: cmake --build ${{ matrix.package }}/build |
| 25 | + run: cmake --build build |
29 | 26 |
|
30 | 27 | - name: Run unit tests
|
31 |
| - run: ctest --test-dir ${{ matrix.package }}/build --output-on-failure --no-tests=error |
| 28 | + run: ctest --test-dir build --output-on-failure --no-tests=error |
32 | 29 |
|
33 | 30 | - name: Check code coverage
|
34 | 31 | uses: threeal/gcovr-action@main
|
35 | 32 | with:
|
36 |
| - root: ${{ matrix.package }} |
37 | 33 | excludes: |
|
38 |
| - ${{ matrix.package }}/build/* |
39 |
| - ${{ matrix.package }}/test/* |
| 34 | + build/* |
| 35 | + test/* |
40 | 36 | fail-under-line: 100
|
41 | 37 |
|
42 | 38 | - name: Check diff
|
43 | 39 | run: git diff --exit-code HEAD
|
44 | 40 |
|
45 | 41 | debug-msvc:
|
46 | 42 | runs-on: windows-latest
|
47 |
| - strategy: |
48 |
| - matrix: |
49 |
| - package: [error] |
50 | 43 | steps:
|
51 | 44 | - name: Checkout repository
|
52 | 45 | uses: actions/checkout@v4.1.1
|
53 | 46 |
|
54 | 47 | - name: Configure CMake
|
55 | 48 | run: |
|
56 |
| - cmake ${{ matrix.package }} ` |
57 |
| - -B ${{ matrix.package }}/build ` |
| 49 | + cmake . ` |
| 50 | + -B build ` |
58 | 51 | -D CMAKE_CXX_COMPILER=cl `
|
59 | 52 | -D BUILD_TESTING=ON `
|
60 | 53 | -D CHECK_WARNING=ON
|
61 | 54 |
|
62 | 55 | - name: Build project
|
63 |
| - run: cmake --build ${{ matrix.package }}/build |
| 56 | + run: cmake --build build |
64 | 57 |
|
65 | 58 | - name: Run unit tests
|
66 |
| - run: ctest --test-dir ${{ matrix.package }}/build --output-on-failure --no-tests=error |
| 59 | + run: ctest --test-dir build --output-on-failure --no-tests=error |
67 | 60 |
|
68 | 61 | release:
|
69 | 62 | runs-on: ubuntu-latest
|
70 |
| - strategy: |
71 |
| - matrix: |
72 |
| - package: [error] |
73 | 63 | steps:
|
74 | 64 | - name: Checkout repository
|
75 | 65 | uses: actions/checkout@v4.1.1
|
76 | 66 |
|
77 | 67 | - name: Configure and build project
|
78 | 68 | uses: threeal/cmake-action@v1.3.0
|
79 | 69 | with:
|
80 |
| - source-dir: ${{ matrix.package }} |
81 | 70 | run-build: true
|
82 | 71 |
|
83 | 72 | release-msvc:
|
84 | 73 | runs-on: windows-latest
|
85 |
| - strategy: |
86 |
| - matrix: |
87 |
| - package: [error] |
88 | 74 | steps:
|
89 | 75 | - name: Checkout repository
|
90 | 76 | uses: actions/checkout@v4.1.1
|
91 | 77 |
|
92 | 78 | - name: Configure and build project
|
93 | 79 | uses: threeal/cmake-action@v1.3.0
|
94 | 80 | with:
|
95 |
| - source-dir: ${{ matrix.package }} |
96 | 81 | cxx-compiler: cl
|
97 | 82 | run-build: true
|
98 | 83 |
|
|
0 commit comments