diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 3f2655a..787f384 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -19,6 +19,10 @@ on: - '**/README.md' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CTEST_OUTPUT_ON_FAILURE: ON CTEST_PARALLEL_LEVEL: 2 diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 57d9d1f..3b202f9 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -13,6 +13,10 @@ on: - 'LICENSE' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Documentation diff --git a/.gitignore b/.gitignore index 1ad214d..d5180b2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *build* install docs +.cache diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3788c8f..8dce5fa 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,6 +9,8 @@ if(NOT googletest_POPULATED) set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) set(BUILD_GTEST_TESTS OFF CACHE BOOL "" FORCE) + + # We need an older googletest version to be compatible with C++11 FetchContent_Declare(googletest URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip DOWNLOAD_EXTRACT_TIMESTAMP TRUE) FetchContent_MakeAvailable(googletest)