Skip to content

Commit 8475678

Browse files
committed
ci: add testing for pre-compiled mode
1 parent bc4b574 commit 8475678

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# modernize-avoid-c-arrays trips up in TEMPLATE_TEST_CASE catch macro
77
# modernize-return-braced-init-list triggers on lambdas ?
88
# modernize-make-unique requires C++14
9+
# readability-avoid-const-params-in-decls Affected by the pre-compile split
910

1011
Checks: |
1112
*bugprone*,
@@ -39,7 +40,6 @@ Checks: |
3940
*performance*,
4041
-performance-unnecessary-value-param,
4142
-performance-inefficient-string-concatenation,
42-
readability-avoid-const-params-in-decls,
4343
readability-const-return-type,
4444
readability-container-size-empty,
4545
readability-delete-null-pointer,

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
std: ["11", "14", "17", "20"]
20+
precompile: ["ON", "OFF"]
2021
steps:
2122
- uses: actions/checkout@v3
2223

@@ -33,6 +34,7 @@ jobs:
3334
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
3435
-DCLI11_SINGLE_FILE_TESTS=OFF \
3536
-DCLI11_EXAMPLES=OFF \
37+
-DCLI11_PRECOMPILED=${{matrix.precompile}} \
3638
-DCMAKE_BUILD_TYPE=Coverage
3739
3840
- name: Build

azure-pipelines.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ variables:
1616
cli11.std: 14
1717
cli11.build_type: Debug
1818
cli11.options: -DCLI11_EXAMPLES_JSON=ON
19+
cli11.precompile: OFF
1920
CMAKE_BUILD_PARALLEL_LEVEL: 4
2021

2122
jobs:
@@ -33,15 +34,26 @@ jobs:
3334
matrix:
3435
Linux14:
3536
vmImage: "ubuntu-latest"
37+
Linux14PC:
38+
vmImage: "ubuntu-latest"
39+
cli11.precompile: ON
3640
macOS17:
3741
vmImage: "macOS-latest"
3842
cli11.std: 17
3943
macOS11:
4044
vmImage: "macOS-latest"
4145
cli11.std: 11
46+
macOS11PC:
47+
vmImage: "macOS-latest"
48+
cli11.std: 11
49+
cli11.precompile: ON
4250
Windows17:
4351
vmImage: "windows-2019"
4452
cli11.std: 17
53+
Windows17PC:
54+
vmImage: "windows-2019"
55+
cli11.std: 17
56+
cli11.precompile: ON
4557
Windows11:
4658
vmImage: "windows-2019"
4759
cli11.std: 11

0 commit comments

Comments
 (0)