Skip to content

Commit

Permalink
ci: add testing for pre-compiled mode
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Aug 15, 2022
1 parent d8b23f3 commit 3b3d41b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# modernize-avoid-c-arrays trips up in TEMPLATE_TEST_CASE catch macro
# modernize-return-braced-init-list triggers on lambdas ?
# modernize-make-unique requires C++14
# readability-avoid-const-params-in-decls Affected by the pre-compile split

Checks: |
*bugprone*,
Expand Down Expand Up @@ -39,7 +40,6 @@ Checks: |
*performance*,
-performance-unnecessary-value-param,
-performance-inefficient-string-concatenation,
readability-avoid-const-params-in-decls,
readability-const-return-type,
readability-container-size-empty,
readability-delete-null-pointer,
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
strategy:
matrix:
std: ["11", "14", "17", "20"]
precompile: ["ON", "OFF"]
steps:
- uses: actions/checkout@v3

Expand All @@ -33,6 +34,7 @@ jobs:
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
-DCLI11_SINGLE_FILE_TESTS=OFF \
-DCLI11_EXAMPLES=OFF \
-DCLI11_PRECOMPILED=${{matrix.precompile}} \
-DCMAKE_BUILD_TYPE=Coverage
- name: Build
Expand Down
12 changes: 12 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ variables:
cli11.std: 14
cli11.build_type: Debug
cli11.options: -DCLI11_EXAMPLES_JSON=ON
cli11.precompile: OFF
CMAKE_BUILD_PARALLEL_LEVEL: 4

jobs:
Expand All @@ -33,15 +34,26 @@ jobs:
matrix:
Linux14:
vmImage: "ubuntu-latest"
Linux14PC:
vmImage: "ubuntu-latest"
cli11.precompile: ON
macOS17:
vmImage: "macOS-latest"
cli11.std: 17
macOS11:
vmImage: "macOS-latest"
cli11.std: 11
macOS11PC:
vmImage: "macOS-latest"
cli11.std: 11
cli11.precompile: ON
Windows17:
vmImage: "windows-2019"
cli11.std: 17
Windows17PC:
vmImage: "windows-2019"
cli11.std: 17
cli11.precompile: ON
Windows11:
vmImage: "windows-2019"
cli11.std: 11
Expand Down

0 comments on commit 3b3d41b

Please sign in to comment.