Updated ci to use c++17

This commit is contained in:
gabime 2024-11-26 13:40:03 +02:00
parent 1d66ca8c0b
commit 419b4bd983
3 changed files with 6 additions and 16 deletions

View File

@ -18,7 +18,6 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
config: config:
- { compiler: gcc, version: 7, build_type: Release, cppstd: 11 }
- { compiler: gcc, version: 9, build_type: Release, cppstd: 17 } - { compiler: gcc, version: 9, build_type: Release, cppstd: 17 }
- { compiler: gcc, version: 11, build_type: Debug, cppstd: 20 } - { compiler: gcc, version: 11, build_type: Debug, cppstd: 20 }
- { compiler: gcc, version: 12, build_type: Release, cppstd: 20 } - { compiler: gcc, version: 12, build_type: Release, cppstd: 20 }
@ -67,7 +66,7 @@ jobs:
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
build_osx: build_osx:
runs-on: macOS-latest runs-on: macOS-latest
name: "OS X Clang (C++11, Release)" name: "OS X Clang (C++17, Release)"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build - name: Build
@ -75,7 +74,7 @@ jobs:
mkdir -p build && cd build mkdir -p build && cd build
cmake .. \ cmake .. \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=11 \ -DCMAKE_CXX_STANDARD=17 \
-DSPDLOG_BUILD_EXAMPLE=ON \ -DSPDLOG_BUILD_EXAMPLE=ON \
-DSPDLOG_BUILD_EXAMPLE_HO=ON \ -DSPDLOG_BUILD_EXAMPLE_HO=ON \
-DSPDLOG_BUILD_WARNINGS=ON \ -DSPDLOG_BUILD_WARNINGS=ON \

View File

@ -8,7 +8,7 @@ permissions:
jobs: jobs:
build: build:
runs-on: macOS-latest runs-on: macOS-latest
name: "macOS Clang (C++11, Release)" name: "macOS Clang (C++17, Release)"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build - name: Build
@ -16,7 +16,7 @@ jobs:
mkdir -p build && cd build mkdir -p build && cd build
cmake .. \ cmake .. \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=11 \ -DCMAKE_CXX_STANDARD=17 \
-DSPDLOG_BUILD_EXAMPLE=ON \ -DSPDLOG_BUILD_EXAMPLE=ON \
-DSPDLOG_BUILD_EXAMPLE_HO=ON \ -DSPDLOG_BUILD_EXAMPLE_HO=ON \
-DSPDLOG_BUILD_WARNINGS=ON \ -DSPDLOG_BUILD_WARNINGS=ON \

View File

@ -93,7 +93,7 @@ jobs:
BUILD_EXAMPLE: 'ON' BUILD_EXAMPLE: 'ON'
USE_STD_FORMAT: 'OFF' USE_STD_FORMAT: 'OFF'
CXX_STANDARD: 17 CXX_STANDARD: 17
- GENERATOR: "Visual Studio 16 2019" - GENERATOR: "Visual Studio 17 2022"
BUILD_TYPE: Release BUILD_TYPE: Release
BUILD_SHARED: 'ON' BUILD_SHARED: 'ON'
FATAL_ERRORS: 'ON' FATAL_ERRORS: 'ON'
@ -101,16 +101,7 @@ jobs:
WCHAR_FILES: 'OFF' WCHAR_FILES: 'OFF'
BUILD_EXAMPLE: 'ON' BUILD_EXAMPLE: 'ON'
USE_STD_FORMAT: 'OFF' USE_STD_FORMAT: 'OFF'
CXX_STANDARD: 14 CXX_STANDARD: 20
- GENERATOR: "Visual Studio 16 2019"
BUILD_TYPE: Release
BUILD_SHARED: 'ON'
FATAL_ERRORS: 'ON'
WCHAR: 'OFF'
WCHAR_FILES: 'OFF'
BUILD_EXAMPLE: 'ON'
USE_STD_FORMAT: 'OFF'
CXX_STANDARD: 11
steps: steps:
- name: Checkout code - name: Checkout code