Skip to content

Commit ec4458b

Browse files
ci: Cancel outdated runs
Canceling builds of commits which are no longer (really) relevant seems like a sensible thing to do.
1 parent dc9acdb commit ec4458b

11 files changed

+44
-0
lines changed

.github/workflows/build.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Compilation only checks
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
standards:
711
runs-on: ubuntu-24.04

.github/workflows/build_and_test.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: '**'
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
build_and_test:
1115
runs-on: ubuntu-24.04

.github/workflows/clang-static-analyzer.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Clang Static Analyzer
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
clang_static_analyzer:
711
runs-on: ubuntu-24.04

.github/workflows/codeql-analysis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
schedule:
99
- cron: '20 14 * * 1'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
codeql:
1317
runs-on: ubuntu-24.04

.github/workflows/compliance.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Compliance
22

33
on: pull_request
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
lint-code:
711
name: Run compliance checks

.github/workflows/coverage.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Measure coverage
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
coverage:
711
runs-on: ubuntu-24.04

.github/workflows/documentation.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
branches: [main]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
documentation:
913
runs-on: ubuntu-24.04

.github/workflows/macos.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: '**'
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
build_and_test:
1115
runs-on: macos-14

.github/workflows/multiarch.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Foreign architectures
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
multiarch:
711
runs-on: ubuntu-24.04

.github/workflows/scorecard.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches:
1212
- main
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
permissions: read-all
1519

1620
jobs:

.github/workflows/sonarcloud-scan.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: SonarCloud Scan
22

33
on: [push]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
sonarcloud:
711
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)