-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bumped minimum required compiler versions to GCC 5.1 / Clang 3.5 / Vi…
…sual Studio 2015
- Loading branch information
Showing
4 changed files
with
23 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
image: ["centos:7", "ubuntu:14.04", "ubuntu:16.04", "ubuntu:18.04", "ubuntu:23.10"] | ||
image: ["ubuntu:16.04", "ubuntu:18.04", "ubuntu:23.10"] | ||
include: | ||
- build_gui: false | ||
- image: "ubuntu:23.10" | ||
|
@@ -39,13 +39,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install missing software on CentOS 7 | ||
if: matrix.image == 'centos:7' | ||
run: | | ||
yum install -y cmake gcc-c++ make pcre-devel | ||
yum --enablerepo=extras install -y epel-release | ||
yum install -y ccache | ||
- name: Install missing software on ubuntu | ||
if: contains(matrix.image, 'ubuntu') | ||
run: | | ||
|
@@ -62,30 +55,20 @@ jobs: | |
# - it doesn't support centos | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
if: matrix.image != 'ubuntu:14.04' # no support for --set-config | ||
with: | ||
key: ${{ github.workflow }}-${{ matrix.image }} | ||
|
||
# tests require CMake 3.9 - no ccache available | ||
- name: CMake build (no tests / no ccache) | ||
if: matrix.image == 'ubuntu:14.04' | ||
run: | | ||
mkdir cmake.output | ||
cd cmake.output | ||
cmake -G "Unix Makefiles" -DHAVE_RULES=On .. | ||
cmake --build . -- -j$(nproc) | ||
# tests require CMake 3.9 - ccache available | ||
- name: CMake build (no tests) | ||
if: matrix.image == 'centos:7' || matrix.image == 'ubuntu:16.04' | ||
if: matrix.image == 'ubuntu:16.04' | ||
run: | | ||
mkdir cmake.output | ||
cd cmake.output | ||
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache .. | ||
cmake --build . -- -j$(nproc) | ||
- name: CMake build | ||
if: ${{ !matrix.build_gui && matrix.image != 'centos:7' && matrix.image != 'ubuntu:14.04' && matrix.image != 'ubuntu:16.04' }} | ||
if: ${{ !matrix.build_gui && matrix.image != 'ubuntu:16.04' }} | ||
run: | | ||
mkdir cmake.output | ||
cd cmake.output | ||
|
@@ -99,15 +82,15 @@ jobs: | |
cmake --build cmake.output -- -j$(nproc) | ||
- name: Run CMake test | ||
if: matrix.image != 'centos:7' && matrix.image != 'ubuntu:14.04' && matrix.image != 'ubuntu:16.04' | ||
if: matrix.image != 'ubuntu:16.04' | ||
run: | | ||
cmake --build cmake.output --target check -- -j$(nproc) | ||
build_make: | ||
|
||
strategy: | ||
matrix: | ||
image: ["centos:7", "ubuntu:14.04", "ubuntu:16.04", "ubuntu:18.04", "ubuntu:23.10"] | ||
image: ["ubuntu:16.04", "ubuntu:18.04", "ubuntu:23.10"] | ||
fail-fast: false # Prefer quick result | ||
|
||
runs-on: ubuntu-22.04 | ||
|
@@ -118,13 +101,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install missing software on CentOS 7 | ||
if: matrix.image == 'centos:7' | ||
run: | | ||
yum install -y gcc-c++ make which python3 pcre-devel | ||
yum --enablerepo=extras install -y epel-release | ||
yum install -y ccache | ||
- name: Install missing software on ubuntu | ||
if: contains(matrix.image, 'ubuntu') | ||
run: | | ||
|
@@ -136,7 +112,6 @@ jobs: | |
# - it doesn't support centos | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
if: matrix.image != 'ubuntu:14.04' # no support for --set-config | ||
with: | ||
key: ${{ github.workflow }}-${{ matrix.image }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8) | ||
message(ERROR "GCC >= 4.8 required - detected ${CMAKE_CXX_COMPILER_VERSION} not supported") | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1) | ||
message(ERROR "GCC >= 5.1 required - detected ${CMAKE_CXX_COMPILER_VERSION} not supported") | ||
endif () | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
# TODO: verify this | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 2.9) | ||
message(ERROR "Clang >= 2.9 required - detected ${CMAKE_CXX_COMPILER_VERSION} not supported") | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5) | ||
message(ERROR "Clang >= 3.5 required - detected ${CMAKE_CXX_COMPILER_VERSION} not supported") | ||
endif () | ||
elseif(MSVC) | ||
if (MSVC_VERSION VERSION_LESS 1800) | ||
message(ERROR "Visual Studio >= 2013 (1800) required - detected ${MSVC_VERSION} not supported") | ||
if (MSVC_VERSION VERSION_LESS 1900) | ||
message(ERROR "Visual Studio >= 2015 (19.0) required - detected ${MSVC_VERSION} not supported") | ||
endif () | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters