Commit 8475678660b9f818f37c9e391c83728d6f9c6ae5
1 parent
bc4b5748
ci: add testing for pre-compiled mode
Showing
3 changed files
with
15 additions
and
1 deletions
.clang-tidy
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | # modernize-avoid-c-arrays trips up in TEMPLATE_TEST_CASE catch macro |
| 7 | 7 | # modernize-return-braced-init-list triggers on lambdas ? |
| 8 | 8 | # modernize-make-unique requires C++14 |
| 9 | +# readability-avoid-const-params-in-decls Affected by the pre-compile split | |
| 9 | 10 | |
| 10 | 11 | Checks: | |
| 11 | 12 | *bugprone*, |
| ... | ... | @@ -39,7 +40,6 @@ Checks: | |
| 39 | 40 | *performance*, |
| 40 | 41 | -performance-unnecessary-value-param, |
| 41 | 42 | -performance-inefficient-string-concatenation, |
| 42 | - readability-avoid-const-params-in-decls, | |
| 43 | 43 | readability-const-return-type, |
| 44 | 44 | readability-container-size-empty, |
| 45 | 45 | readability-delete-null-pointer, | ... | ... |
.github/workflows/tests.yml
| ... | ... | @@ -17,6 +17,7 @@ jobs: |
| 17 | 17 | strategy: |
| 18 | 18 | matrix: |
| 19 | 19 | std: ["11", "14", "17", "20"] |
| 20 | + precompile: ["ON", "OFF"] | |
| 20 | 21 | steps: |
| 21 | 22 | - uses: actions/checkout@v3 |
| 22 | 23 | |
| ... | ... | @@ -33,6 +34,7 @@ jobs: |
| 33 | 34 | -DCMAKE_CXX_STANDARD=${{matrix.std}} \ |
| 34 | 35 | -DCLI11_SINGLE_FILE_TESTS=OFF \ |
| 35 | 36 | -DCLI11_EXAMPLES=OFF \ |
| 37 | + -DCLI11_PRECOMPILED=${{matrix.precompile}} \ | |
| 36 | 38 | -DCMAKE_BUILD_TYPE=Coverage |
| 37 | 39 | |
| 38 | 40 | - name: Build | ... | ... |
azure-pipelines.yml
| ... | ... | @@ -16,6 +16,7 @@ variables: |
| 16 | 16 | cli11.std: 14 |
| 17 | 17 | cli11.build_type: Debug |
| 18 | 18 | cli11.options: -DCLI11_EXAMPLES_JSON=ON |
| 19 | + cli11.precompile: OFF | |
| 19 | 20 | CMAKE_BUILD_PARALLEL_LEVEL: 4 |
| 20 | 21 | |
| 21 | 22 | jobs: |
| ... | ... | @@ -33,15 +34,26 @@ jobs: |
| 33 | 34 | matrix: |
| 34 | 35 | Linux14: |
| 35 | 36 | vmImage: "ubuntu-latest" |
| 37 | + Linux14PC: | |
| 38 | + vmImage: "ubuntu-latest" | |
| 39 | + cli11.precompile: ON | |
| 36 | 40 | macOS17: |
| 37 | 41 | vmImage: "macOS-latest" |
| 38 | 42 | cli11.std: 17 |
| 39 | 43 | macOS11: |
| 40 | 44 | vmImage: "macOS-latest" |
| 41 | 45 | cli11.std: 11 |
| 46 | + macOS11PC: | |
| 47 | + vmImage: "macOS-latest" | |
| 48 | + cli11.std: 11 | |
| 49 | + cli11.precompile: ON | |
| 42 | 50 | Windows17: |
| 43 | 51 | vmImage: "windows-2019" |
| 44 | 52 | cli11.std: 17 |
| 53 | + Windows17PC: | |
| 54 | + vmImage: "windows-2019" | |
| 55 | + cli11.std: 17 | |
| 56 | + cli11.precompile: ON | |
| 45 | 57 | Windows11: |
| 46 | 58 | vmImage: "windows-2019" |
| 47 | 59 | cli11.std: 11 | ... | ... |