💚 fix Git

This commit is contained in:
Niels Lohmann 2022-08-21 15:00:43 +02:00
parent f42b0f9a95
commit fbbd8fac84
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 3 additions and 1 deletions

View File

@ -77,6 +77,8 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest CMake and ninja
uses: lukka/get-cmake@latest
- name: Install git
run: apt-get update ; apt-get install -y git
- name: Run CMake
run: cmake -S . -B build -DJSON_CI=On
- name: Build

View File

@ -429,7 +429,7 @@ add_custom_target(ci_test_clang
-DJSON_BuildTests=ON
-S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_clang
COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_clang
COMMAND cd ${PROJECT_BINARY_DIR}/build_clang && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
COMMAND cd ${PROJECT_BINARY_DIR}/build_clang && ${CMAKE_CTEST_COMMAND} -LE git_required --parallel ${N} --output-on-failure
COMMENT "Compile and test with Clang using maximal warning flags"
)