Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 12 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
config:
config:
- {
name: "ubuntu_latest_gcc_cxx11",
os: ubuntu-latest,
Expand Down Expand Up @@ -63,30 +63,6 @@ jobs:
cxx: "g++-11",
cxxstd: "20"
}
- {
name: "ubuntu_latest_clang11_cxx11",
os: ubuntu-latest,
build_type: "Release",
cc: "clang-11",
cxx: "clang++-11",
cxxstd: "11"
}
- {
name: "ubuntu_latest_clang11_cxx14",
os: ubuntu-latest,
build_type: "Release",
cc: "clang-11",
cxx: "clang++-11",
cxxstd: "14"
}
- {
name: "ubuntu_latest_clang12_cxx14",
os: ubuntu-latest,
build_type: "Release",
cc: "clang-12",
cxx: "clang++-12",
cxxstd: "14"
}
- {
name: "ubuntu22_clang13_cxx17",
os: ubuntu-22.04,
Expand Down Expand Up @@ -145,14 +121,14 @@ jobs:
shell: bash
working-directory: tests
run: |
export SHOULD_RUN_COVERAGE="y"
./cov_check
cd ..
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
./codecov
sudo apt-get install lcov
lcov --directory . --capture --output-file coverage.info

- name: Upload to Codecov
if: startsWith(matrix.config.build_type, 'Coverage')
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
name: gcem
files: ${{ runner.workspace }}/tests/coverage.info
verbose: true
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
##
################################################################################

cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.31)
project(gcem)

set(GCEM_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
Expand All @@ -43,7 +43,7 @@ message(STATUS "GCE-Math version ${${PROJECT_NAME}_VERSION}")
if(NOT MSVC)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

if(COMPILER_SUPPORTS_CXX11)
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has C++11 support.")
else()
Expand Down
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
##
################################################################################

cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.31)

if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
project(gcem-test)
Expand All @@ -35,7 +35,7 @@ set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
if(NOT MSVC)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

if(COMPILER_SUPPORTS_CXX11)
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -O0 -Wall -Wextra --coverage -fno-inline -fno-inline-small-functions -fno-default-inline")
Expand Down Expand Up @@ -66,7 +66,7 @@ foreach( file_ ${GCEM_TESTS} )

add_executable( ${testname} EXCLUDE_FROM_ALL ${filename} )
target_link_libraries( ${testname} gcem )

list(APPEND GCEM_TESTS_EX ${testname})
endforeach()

Expand Down
22 changes: 0 additions & 22 deletions tests/cov_check

This file was deleted.

1 change: 1 addition & 0 deletions tests/run_tests
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

for t in ./*.test; do
"$t"
Expand Down
Loading