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