From 6beb5f5587ff8e4fda9289ce6ffbfd65d735a630 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 17 Aug 2020 13:36:30 -0400 Subject: [PATCH] This adds debug tests in CI. (#1123) * This adds debug tests in CI. * Removing silly labels. * Typo --- .github/workflows/mingw64-ci.yml | 8 +++++++- .github/workflows/msys2.yml | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mingw64-ci.yml b/.github/workflows/mingw64-ci.yml index 397236e8..05bed853 100644 --- a/.github/workflows/mingw64-ci.yml +++ b/.github/workflows/mingw64-ci.yml @@ -32,7 +32,7 @@ jobs: run: | Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') scoop install sudo --global - sudo scoop install git --global + sudo scoop install git --global sudo scoop install ninja --global sudo scoop install cmake --global sudo scoop install gcc --arch 64bit --global @@ -51,3 +51,9 @@ jobs: cmake -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_COMPETITION=OFF -DSIMDJSON_GOOGLE_BENCHMARKS=OFF -DSIMDJSON_ENABLE_THREADS=OFF .. cmake --build . --target parse_many_test jsoncheck basictests numberparsingcheck stringparsingcheck errortests integer_tests pointercheck --verbose ctest -R "(parse_many_test|jsoncheck|basictests|stringparsingcheck|numberparsingcheck|errortests|integer_tests|pointercheck)" --output-on-failure + cd .. + mkdir build64debug + cd build64debug + cmake -DCMAKE_BUILD_TYPE=Debug -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_COMPETITION=OFF -DSIMDJSON_GOOGLE_BENCHMARKS=OFF -DSIMDJSON_ENABLE_THREADS=OFF .. + cmake --build . --target parse_many_test jsoncheck basictests numberparsingcheck stringparsingcheck errortests integer_tests pointercheck --verbose + ctest -R "(parse_many_test|jsoncheck|basictests|stringparsingcheck|numberparsingcheck|errortests|integer_tests|pointercheck)" --output-on-failure diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index a31c667c..63daa4b7 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -15,8 +15,16 @@ jobs: include: - msystem: "MINGW64" install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc + type: Release - msystem: "MINGW32" install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc + type: Release + - msystem: "MINGW64" + install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc + type: Debug + - msystem: "MINGW32" + install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc + type: Debug env: CMAKE_GENERATOR: Ninja @@ -31,6 +39,6 @@ jobs: run: | mkdir build cd build - cmake -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_DO_NOT_USE_THREADS_NO_MATTER_WHAT=ON .. + cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_DO_NOT_USE_THREADS_NO_MATTER_WHAT=ON .. cmake --build . --verbose ctest -j4 --output-on-failure -E checkperf