mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-07 23:33:52 +00:00
ci: add testing for pre-compiled mode
This commit is contained in:
parent
bc4b57489d
commit
8475678660
@ -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*,
|
||||
@ -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,
|
||||
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -17,6 +17,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
std: ["11", "14", "17", "20"]
|
||||
precompile: ["ON", "OFF"]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@ -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
|
||||
|
@ -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:
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user