Check if it is possible to build project with C++20 on current CI
This commit is contained in:
parent
91e8c20eaa
commit
39e814a5f3
240
.github/workflows/osrm-backend.yml
vendored
240
.github/workflows/osrm-backend.yml
vendored
@ -159,91 +159,91 @@ jobs:
|
|||||||
CXXCOMPILER: g++-13
|
CXXCOMPILER: g++-13
|
||||||
ENABLE_COVERAGE: ON
|
ENABLE_COVERAGE: ON
|
||||||
|
|
||||||
- name: clang-15-debug-asan-ubsan
|
# - name: clang-15-debug-asan-ubsan
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Debug
|
# BUILD_TYPE: Debug
|
||||||
CCOMPILER: clang-15
|
# CCOMPILER: clang-15
|
||||||
CUCUMBER_TIMEOUT: 20000
|
# CUCUMBER_TIMEOUT: 20000
|
||||||
CXXCOMPILER: clang++-15
|
# CXXCOMPILER: clang++-15
|
||||||
ENABLE_SANITIZER: ON
|
# ENABLE_SANITIZER: ON
|
||||||
TARGET_ARCH: x86_64-asan-ubsan
|
# TARGET_ARCH: x86_64-asan-ubsan
|
||||||
OSRM_CONNECTION_RETRIES: 10
|
# OSRM_CONNECTION_RETRIES: 10
|
||||||
OSRM_CONNECTION_EXP_BACKOFF_COEF: 1.5
|
# OSRM_CONNECTION_EXP_BACKOFF_COEF: 1.5
|
||||||
|
|
||||||
- name: clang-15-release
|
# - name: clang-15-release
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 18
|
# node: 18
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang-15
|
# CCOMPILER: clang-15
|
||||||
CXXCOMPILER: clang++-15
|
# CXXCOMPILER: clang++-15
|
||||||
CUCUMBER_TIMEOUT: 60000
|
# CUCUMBER_TIMEOUT: 60000
|
||||||
|
|
||||||
- name: clang-15-debug
|
# - name: clang-15-debug
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 18
|
# node: 18
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Debug
|
# BUILD_TYPE: Debug
|
||||||
CCOMPILER: clang-15
|
# CCOMPILER: clang-15
|
||||||
CXXCOMPILER: clang++-15
|
# CXXCOMPILER: clang++-15
|
||||||
CUCUMBER_TIMEOUT: 60000
|
# CUCUMBER_TIMEOUT: 60000
|
||||||
|
|
||||||
- name: clang-15-debug-clang-tidy
|
# - name: clang-15-debug-clang-tidy
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 18
|
# node: 18
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Debug
|
# BUILD_TYPE: Debug
|
||||||
CCOMPILER: clang-15
|
# CCOMPILER: clang-15
|
||||||
CXXCOMPILER: clang++-15
|
# CXXCOMPILER: clang++-15
|
||||||
CUCUMBER_TIMEOUT: 60000
|
# CUCUMBER_TIMEOUT: 60000
|
||||||
ENABLE_CLANG_TIDY: ON
|
# ENABLE_CLANG_TIDY: ON
|
||||||
|
|
||||||
- name: clang-14-release
|
# - name: clang-14-release
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 18
|
# node: 18
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang-14
|
# CCOMPILER: clang-14
|
||||||
CXXCOMPILER: clang++-14
|
# CXXCOMPILER: clang++-14
|
||||||
CUCUMBER_TIMEOUT: 60000
|
# CUCUMBER_TIMEOUT: 60000
|
||||||
|
|
||||||
- name: clang-13-release
|
# - name: clang-13-release
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 18
|
# node: 18
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang-13
|
# CCOMPILER: clang-13
|
||||||
CXXCOMPILER: clang++-13
|
# CXXCOMPILER: clang++-13
|
||||||
CUCUMBER_TIMEOUT: 60000
|
# CUCUMBER_TIMEOUT: 60000
|
||||||
|
|
||||||
- name: conan-linux-debug-asan-ubsan
|
# - name: conan-linux-debug-asan-ubsan
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 18
|
# node: 18
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang-15
|
# CCOMPILER: clang-15
|
||||||
CXXCOMPILER: clang++-15
|
# CXXCOMPILER: clang++-15
|
||||||
ENABLE_CONAN: ON
|
# ENABLE_CONAN: ON
|
||||||
ENABLE_SANITIZER: ON
|
# ENABLE_SANITIZER: ON
|
||||||
|
|
||||||
- name: conan-linux-release
|
# - name: conan-linux-release
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 18
|
# node: 18
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang-15
|
# CCOMPILER: clang-15
|
||||||
CXXCOMPILER: clang++-15
|
# CXXCOMPILER: clang++-15
|
||||||
ENABLE_CONAN: ON
|
# ENABLE_CONAN: ON
|
||||||
|
|
||||||
- name: gcc-13-release
|
- name: gcc-13-release
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
@ -277,51 +277,51 @@ jobs:
|
|||||||
CXXCOMPILER: g++-11
|
CXXCOMPILER: g++-11
|
||||||
ENABLE_BENCHMARKS: ON
|
ENABLE_BENCHMARKS: ON
|
||||||
|
|
||||||
- name: conan-linux-release-node
|
# - name: conan-linux-release-node
|
||||||
build_node_package: true
|
# build_node_package: true
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang-13
|
# CCOMPILER: clang-13
|
||||||
CXXCOMPILER: clang++-13
|
# CXXCOMPILER: clang++-13
|
||||||
ENABLE_CONAN: ON
|
# ENABLE_CONAN: ON
|
||||||
NODE_PACKAGE_TESTS_ONLY: ON
|
# NODE_PACKAGE_TESTS_ONLY: ON
|
||||||
|
|
||||||
- name: conan-linux-debug-node
|
# - name: conan-linux-debug-node
|
||||||
build_node_package: true
|
# build_node_package: true
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TYPE: Debug
|
# BUILD_TYPE: Debug
|
||||||
CCOMPILER: clang-13
|
# CCOMPILER: clang-13
|
||||||
CXXCOMPILER: clang++-13
|
# CXXCOMPILER: clang++-13
|
||||||
ENABLE_CONAN: ON
|
# ENABLE_CONAN: ON
|
||||||
NODE_PACKAGE_TESTS_ONLY: ON
|
# NODE_PACKAGE_TESTS_ONLY: ON
|
||||||
|
|
||||||
- name: conan-macos-x64-release-node
|
# - name: conan-macos-x64-release-node
|
||||||
build_node_package: true
|
# build_node_package: true
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: macos-13 # x86_64
|
# runs-on: macos-13 # x86_64
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang
|
# CCOMPILER: clang
|
||||||
CXXCOMPILER: clang++
|
# CXXCOMPILER: clang++
|
||||||
CUCUMBER_TIMEOUT: 60000
|
# CUCUMBER_TIMEOUT: 60000
|
||||||
ENABLE_ASSERTIONS: ON
|
# ENABLE_ASSERTIONS: ON
|
||||||
ENABLE_CONAN: ON
|
# ENABLE_CONAN: ON
|
||||||
|
|
||||||
- name: conan-macos-arm64-release-node
|
# - name: conan-macos-arm64-release-node
|
||||||
build_node_package: true
|
# build_node_package: true
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: macos-14 # arm64
|
# runs-on: macos-14 # arm64
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: clang
|
# CCOMPILER: clang
|
||||||
CXXCOMPILER: clang++
|
# CXXCOMPILER: clang++
|
||||||
CUCUMBER_TIMEOUT: 60000
|
# CUCUMBER_TIMEOUT: 60000
|
||||||
ENABLE_ASSERTIONS: ON
|
# ENABLE_ASSERTIONS: ON
|
||||||
ENABLE_CONAN: ON
|
# ENABLE_CONAN: ON
|
||||||
|
|
||||||
name: ${{ matrix.name}}
|
name: ${{ matrix.name}}
|
||||||
continue-on-error: ${{ matrix.continue-on-error }}
|
continue-on-error: ${{ matrix.continue-on-error }}
|
||||||
|
@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD 20)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++20")
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++20")
|
||||||
|
|
||||||
|
|
||||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND NOT MSVC_IDE)
|
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND NOT MSVC_IDE)
|
||||||
|
Loading…
Reference in New Issue
Block a user