Skip to content

Commit aa2586f

Browse files
committed
Fix clang-tidy GH action, cancel running GH actions when pushing
1 parent 012adf0 commit aa2586f

File tree

12 files changed

+43
-2
lines changed

12 files changed

+43
-2
lines changed

.github/workflows/clang-format.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: test-clang-format
22
on: [push,pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
48
jobs:
59
clang-format-checking:
610
runs-on: ubuntu-latest

.github/workflows/clang-tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
# Create compile_commands.json for clang-tidy
4646
- name: Configure CMake compile_commands.json
4747
run: |
48-
cmake -S . -B "$BUILD_DIR" -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
48+
cmake -S test -B "$BUILD_DIR" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja
4949
# If your project generates headers, you can add a light build:
5050
# cmake --build "$BUILD_DIR" -j
5151

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
name: "CodeQL"
1313
on: [push,pull_request]
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
analyze:
1721
name: Analyze

.github/workflows/cppcheck.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: cppcheck
22
on: [push]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
48
jobs:
59
build:
610
name: cppcheck-test

.github/workflows/doxygen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: doxygen
22
on: [push,pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
48
jobs:
59
build:
610
name: doxygen-test

.github/workflows/i18n-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: quneiform
22
on: [push,pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
48
jobs:
59
build:
610
name: quneiform

.github/workflows/macos-unit-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: macOS Build & Unit Tests
22
on: [push,pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
48
jobs:
59
build:
610
name: unit-tests

.github/workflows/msvc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
name: Microsoft C++ Code Analysis
1010
on: [push,pull_request]
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
env:
1317
# Path to the CMake build directory.
1418
build: '${{ github.workspace }}'

.github/workflows/msw-unit-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Windows Build & Unit Tests
22
on: [push, pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
48
env:
59
testrunner: 'TETestRunner'
610
outfile: 'te-junit.xml'

.github/workflows/spell-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Spell Check
22
on: [push,pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
48
jobs:
59
check-unix:
610
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)