Build print_meta target in CI
This commit is contained in:
parent
d8d9d63536
commit
e5f1821bb3
6
.github/workflows/macos.yml
vendored
6
.github/workflows/macos.yml
vendored
@ -26,6 +26,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --parallel 10
|
||||
- name: Test
|
||||
@ -43,6 +45,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --parallel 10
|
||||
- name: Test
|
||||
@ -60,6 +64,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_TestStandards=${{ matrix.standard }}
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --parallel 10
|
||||
- name: Test
|
||||
|
||||
14
.github/workflows/windows.yml
vendored
14
.github/workflows/windows.yml
vendored
@ -49,6 +49,8 @@ jobs:
|
||||
# platform: ${{ matrix.architecture }}
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --parallel 10
|
||||
- name: Test
|
||||
@ -69,6 +71,8 @@ jobs:
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -G "Visual Studio 16 2019" -A ${{ matrix.architecture }} -DJSON_BuildTests=On -DJSON_FastTests=ON -DCMAKE_CXX_FLAGS="/W4 /WX"
|
||||
if: matrix.build_type == 'Debug'
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --config ${{ matrix.build_type }} --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --config ${{ matrix.build_type }} --parallel 10
|
||||
- name: Test
|
||||
@ -81,6 +85,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -G "Visual Studio 16 2019" -DJSON_BuildTests=On -DCMAKE_CXX_FLAGS="/permissive- /std:c++latest /utf-8 /W4 /WX"
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --config Release --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --config Release --parallel 10
|
||||
- name: Test
|
||||
@ -101,6 +107,8 @@ jobs:
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -G "Visual Studio 17 2022" -A ${{ matrix.architecture }} -DJSON_BuildTests=On -DJSON_FastTests=ON -DCMAKE_CXX_FLAGS="/W4 /WX"
|
||||
if: matrix.build_type == 'Debug'
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --config ${{ matrix.build_type }} --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --config ${{ matrix.build_type }} --parallel 10
|
||||
- name: Test
|
||||
@ -113,6 +121,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -G "Visual Studio 17 2022" -DJSON_BuildTests=On -DCMAKE_CXX_FLAGS="/permissive- /std:c++latest /utf-8 /W4 /WX"
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --config Release --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --config Release --parallel 10
|
||||
- name: Test
|
||||
@ -130,6 +140,8 @@ jobs:
|
||||
run: curl -fsSL -o LLVM${{ matrix.version }}.exe https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ matrix.version }}.0.0/LLVM-${{ matrix.version }}.0.0-win64.exe ; 7z x LLVM${{ matrix.version }}.exe -y -o"C:/Program Files/LLVM"
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang++.exe" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --parallel 10
|
||||
- name: Test
|
||||
@ -145,6 +157,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -G "Visual Studio 16 2019" -A ${{ matrix.architecture }} -T ClangCL -DJSON_BuildTests=On
|
||||
- name: Print JSON meta
|
||||
run: cmake --build build --target print_meta --parallel 10
|
||||
- name: Build
|
||||
run: cmake --build build --config Debug --parallel 10
|
||||
- name: Test
|
||||
|
||||
@ -419,6 +419,7 @@ add_custom_target(ci_test_gcc
|
||||
-DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||
-DJSON_BuildTests=ON
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with GCC using maximal warning flags"
|
||||
@ -430,6 +431,7 @@ add_custom_target(ci_test_clang
|
||||
-DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||
-DJSON_BuildTests=ON
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with Clang using maximal warning flags"
|
||||
@ -447,6 +449,7 @@ foreach(CXX_STANDARD 11 14 17 20)
|
||||
-DJSON_BuildTests=ON -DJSON_FastTests=ON
|
||||
-DJSON_TestStandards=${CXX_STANDARD}
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with GCC for C++${CXX_STANDARD}"
|
||||
@ -459,6 +462,7 @@ foreach(CXX_STANDARD 11 14 17 20)
|
||||
-DJSON_BuildTests=ON -DJSON_FastTests=ON
|
||||
-DJSON_TestStandards=${CXX_STANDARD}
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with Clang for C++${CXX_STANDARD}"
|
||||
@ -475,6 +479,7 @@ add_custom_target(ci_test_noexceptions
|
||||
-DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||
-DJSON_BuildTests=ON -DCMAKE_CXX_FLAGS=-DJSON_NOEXCEPTION -DDOCTEST_TEST_FILTER=--no-throw
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with exceptions switched off"
|
||||
@ -490,6 +495,7 @@ add_custom_target(ci_test_noimplicitconversions
|
||||
-DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||
-DJSON_BuildTests=ON -DJSON_ImplicitConversions=OFF
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with implicit conversions switched off"
|
||||
@ -505,6 +511,7 @@ add_custom_target(ci_test_diagnostics
|
||||
-DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||
-DJSON_BuildTests=ON -DJSON_Diagnostics=ON
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with improved diagnostics enabled"
|
||||
@ -520,6 +527,7 @@ add_custom_target(ci_test_legacycomparison
|
||||
-DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||
-DJSON_BuildTests=ON -DJSON_LegacyDiscardedValueComparison=ON
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} --output-on-failure
|
||||
COMMENT "Compile and test with legacy discarded value comparison enabled"
|
||||
@ -939,6 +947,7 @@ foreach(COMPILER g++-4.8 g++-4.9 g++-5 g++-6 g++-7 g++-8 g++-9 g++-10 g++-11 cla
|
||||
-DJSON_BuildTests=ON -DJSON_FastTests=ON
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
${ADDITIONAL_FLAGS}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} -E "test-unicode" --output-on-failure
|
||||
COMMENT "Compile and test with ${COMPILER}"
|
||||
@ -971,6 +980,7 @@ add_custom_target(ci_icpc
|
||||
-DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc
|
||||
-DJSON_BuildTests=ON -DJSON_FastTests=ON
|
||||
-S${PROJECT_SOURCE_DIR} -B${binary_dir}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N} -t print_meta
|
||||
COMMAND ${CMAKE_COMMAND} --build ${binary_dir} -j${N}
|
||||
COMMAND cd ${binary_dir} && ${CMAKE_CTEST_COMMAND} -j${N} -E "test-unicode" --output-on-failure
|
||||
COMMENT "Compile and test with ICPC"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user