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: matrix:
14_debug: 14_debug:
GSL_CXX_STANDARD: '14' GSL_CXX_STANDARD: '14'
CMAKE_CXX_STANDARD: '14'
BUILD_TYPE: 'Debug' BUILD_TYPE: 'Debug'
14_release: 14_release:
GSL_CXX_STANDARD: '14' GSL_CXX_STANDARD: '14'
CMAKE_CXX_STANDARD: '14'
BUILD_TYPE: 'Release' BUILD_TYPE: 'Release'
17_debug: 17_debug:
GSL_CXX_STANDARD: '17' GSL_CXX_STANDARD: '17'
CMAKE_CXX_STANDARD: '17'
BUILD_TYPE: 'Debug' BUILD_TYPE: 'Debug'
17_release: 17_release:
GSL_CXX_STANDARD: '17' GSL_CXX_STANDARD: '17'
CMAKE_CXX_STANDARD: '17'
BUILD_TYPE: 'Release' BUILD_TYPE: 'Release'
20_debug:
GSL_CXX_STANDARD: '17'
CMAKE_CXX_STANDARD: '20'
BUILD_TYPE: 'Debug'
continueOnError: false continueOnError: false
steps: steps:
- template: ./steps.yml - template: ./steps.yml

View File

@ -3,7 +3,7 @@ steps:
name: Configure name: Configure
inputs: inputs:
workingDirectory: build 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 - task: CMake@1
name: Build name: Build