mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-24 22:36:10 +01:00
Add Linux and Windows CI builds with surrogate TUs
This commit is contained in:
parent
e5e9afad16
commit
29050daec0
10
.github/workflows/linux-builds.yml
vendored
10
.github/workflows/linux-builds.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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" (
|
||||
|
Loading…
Reference in New Issue
Block a user