Enable C++20 tests in CI

This commit is contained in:
Dmitry Kobets 2021-11-29 11:46:45 -08:00
parent f2feab563f
commit 4cbd4165a8
2 changed files with 9 additions and 1 deletions

View File

@ -11,16 +11,24 @@ jobs:
matrix:
14_debug:
GSL_CXX_STANDARD: '14'
CMAKE_CXX_STANDARD: '14'
BUILD_TYPE: 'Debug'
14_release:
GSL_CXX_STANDARD: '14'
CMAKE_CXX_STANDARD: '14'
BUILD_TYPE: 'Release'
17_debug:
GSL_CXX_STANDARD: '17'
CMAKE_CXX_STANDARD: '17'
BUILD_TYPE: 'Debug'
17_release:
GSL_CXX_STANDARD: '17'
CMAKE_CXX_STANDARD: '17'
BUILD_TYPE: 'Release'
20_debug:
GSL_CXX_STANDARD: '17'
CMAKE_CXX_STANDARD: '20'
BUILD_TYPE: 'Debug'
continueOnError: false
steps:
- template: ./steps.yml

View File

@ -3,7 +3,7 @@ steps:
name: Configure
inputs:
workingDirectory: build
cmakeArgs: '-DCMAKE_CXX_STANDARD=$(GSL_CXX_STANDARD) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -Werror=dev .. '
cmakeArgs: '-DCMAKE_CXX_STANDARD=$(CMAKE_CXX_STANDARD) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -Werror=dev .. '
- task: CMake@1
name: Build