add tests for c++23

This commit is contained in:
Carson Radtke 2024-10-14 13:56:22 -05:00
parent cb108e433d
commit 8b1634e806
2 changed files with 21 additions and 13 deletions

View File

@ -17,9 +17,12 @@ jobs:
gcc: gcc:
strategy: strategy:
matrix: matrix:
cxx_version: [ 14, 17, 20 ]
build_type: [ 'Debug', 'Release' ]
gcc_version: [ 10, 11, 12 ] gcc_version: [ 10, 11, 12 ]
build_type: [ Debug, Release ]
cxx_version: [ 14, 17, 20, 23 ]
exclude:
- gcc_version: 10
cxx_version: 23
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -34,9 +37,9 @@ jobs:
clang: clang:
strategy: strategy:
matrix: matrix:
cxx_version: [ 14, 17, 20 ]
build_type: [ 'Debug', 'Release' ]
clang_version: [ 13, 14, 15 ] clang_version: [ 13, 14, 15 ]
build_type: [ Debug, Release ]
cxx_version: [ 14, 17, 20, 23 ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -51,9 +54,9 @@ jobs:
xcode: xcode:
strategy: strategy:
matrix: matrix:
cxx_version: [ 14, 17, 20 ]
build_type: [ 'Debug', 'Release' ]
xcode_version: [ '14.3.1', '15.4' ] xcode_version: [ '14.3.1', '15.4' ]
build_type: [ Debug, Release ]
cxx_version: [ 14, 17, 20, 23 ]
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -71,13 +74,18 @@ jobs:
VisualStudio: VisualStudio:
strategy: strategy:
matrix: matrix:
cxx_version: [ 14, 17, 20 ] generator: [ 'Visual Studio 16 2019', 'Visual Studio 17 2022' ]
image: [ windows-2019, windows-2022 ]
build_type: [ Debug, Release ]
extra_args: [ '', '-T ClangCL' ] extra_args: [ '', '-T ClangCL' ]
include: cxx_version: [ 14, 17, 20, 23 ]
- generator: 'Visual Studio 16 2019' exclude:
image: 'windows-2019'
- generator: 'Visual Studio 17 2022' - generator: 'Visual Studio 17 2022'
image: 'windows-2022' image: windows-2019
- generator: 'Visual Studio 16 2019'
image: windows-2022
- generator: 'Visual Studio 16 2019'
cxx_version: 23
runs-on: ${{ matrix.image }} runs-on: ${{ matrix.image }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@ -86,8 +86,8 @@ This is based on [CppCoreGuidelines semi-specification](https://github.com/isocp
# Quick Start # Quick Start
## Supported Compilers / Toolsets ## Supported Compilers / Toolsets
The GSL officially support recent major versions of Visual Studio with both MSVC and LLVM, GCC, Clang, and XCode with Apple-Clang. The GSL officially supports recent major versions of Visual Studio with both MSVC and LLVM, GCC, Clang, and XCode with Apple-Clang.
For each of these major versions, the GSL officially supports C++14, C++17, and C++20. For each of these major versions, the GSL officially supports C++14, C++17, C++20, and C++23 (when supported by the compiler).
Below is a table showing the versions currently being tested (also see [.github/workflows/compilers.yml](the workflow).) Below is a table showing the versions currently being tested (also see [.github/workflows/compilers.yml](the workflow).)
Compiler |Toolset Versions Currently Tested Compiler |Toolset Versions Currently Tested