Skip to content

Commit 790e10a

Browse files
Cancel running jobs (#80)
* Ignore .cache * Cancel running jobs * Mark googletest C++11 compat
1 parent d4667ca commit 790e10a

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
- '**/README.md'
2020
workflow_dispatch:
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: true
25+
2226
env:
2327
CTEST_OUTPUT_ON_FAILURE: ON
2428
CTEST_PARALLEL_LEVEL: 2

.github/workflows/doc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- 'LICENSE'
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
build:
1822
name: Documentation

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*build*
33
install
44
docs
5+
.cache

tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if(NOT googletest_POPULATED)
99
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
1010
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
1111
set(BUILD_GTEST_TESTS OFF CACHE BOOL "" FORCE)
12+
13+
# We need an older googletest version to be compatible with C++11
1214
FetchContent_Declare(googletest URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip
1315
DOWNLOAD_EXTRACT_TIMESTAMP TRUE)
1416
FetchContent_MakeAvailable(googletest)

0 commit comments

Comments
 (0)