From 29050daec0fc1a1b092ac2dc711bfc40648b8976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 16 Feb 2021 16:05:23 +0100 Subject: [PATCH] Add Linux and Windows CI builds with surrogate TUs --- .github/workflows/linux-builds.yml | 10 +++++++++- appveyor.yml | 3 ++- tools/misc/appveyorBuildConfigurationScript.bat | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-builds.yml b/.github/workflows/linux-builds.yml index 93ae21e6..eae7e003 100644 --- a/.github/workflows/linux-builds.yml +++ b/.github/workflows/linux-builds.yml @@ -20,6 +20,7 @@ jobs: - clang++-10 build_type: [Debug, Release] std: [14] + surrogates: [OFF] include: # cannot be installed on ubuntu-20.04 be default? # - cxx: g++-6 @@ -30,6 +31,13 @@ jobs: other_pkgs: clang-7 - cxx: clang++-10 other_pkgs: clang-10 + # We want one build to build surrogates -- but not more, to + # avoid trouble with long compilation/CI times. + - cxx: clang++-10 + build_type: Debug + std: 14 + other_pkgs: clang-10 + surrogates: ON steps: - uses: actions/checkout@v2 @@ -47,7 +55,7 @@ jobs: run: | cmake -Bbuild -H$GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ -DCMAKE_CXX_STANDARD=${{matrix.std}} -DCATCH_DEVELOPMENT_BUILD=ON \ - -G Ninja + -DCATCH_BUILD_SURROGATES=${{matrix.surrogates}} -G Ninja - name: Build tests + lib working-directory: ${{runner.workspace}}/build diff --git a/appveyor.yml b/appveyor.yml index 86a1df18..d84d775c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -51,8 +51,9 @@ test_script: # build explicitly. environment: matrix: - - FLAVOR: VS 2019 x64 Debug + - FLAVOR: VS 2019 x64 Debug Surrogates APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + surrogates: 1 platform: x64 configuration: Debug diff --git a/tools/misc/appveyorBuildConfigurationScript.bat b/tools/misc/appveyorBuildConfigurationScript.bat index 9ebd6ae0..d9be52eb 100644 --- a/tools/misc/appveyorBuildConfigurationScript.bat +++ b/tools/misc/appveyorBuildConfigurationScript.bat @@ -13,7 +13,7 @@ if "%CONFIGURATION%"=="Debug" ( cmake -H. -BBuild -A%PLATFORM% -DCATCH_TEST_USE_WMAIN=%wmain% -DMEMORYCHECK_COMMAND=build-misc\Debug\CoverageHelper.exe -DMEMORYCHECK_COMMAND_OPTIONS=--sep-- -DMEMORYCHECK_TYPE=Valgrind -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% -DCATCH_DEVELOPMENT_BUILD=ON || exit /b !ERRORLEVEL! ) else ( @REM # We know that coverage is 0 - cmake -H. -BBuild -A%PLATFORM% -DCATCH_TEST_USE_WMAIN=%wmain% -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% -DCATCH_DEVELOPMENT_BUILD=ON || exit /b !ERRORLEVEL! + cmake -H. -BBuild -A%PLATFORM% -DCATCH_TEST_USE_WMAIN=%wmain% -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% -DCATCH_BUILD_SURROGATES=%surrogates% -DCATCH_DEVELOPMENT_BUILD=ON || exit /b !ERRORLEVEL! ) ) if "%CONFIGURATION%"=="Release" (