Skip to content

Commit fcc809a

Browse files
committed
Add concurrency to avoid duplicate flows
1 parent 824a848 commit fcc809a

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

.github/workflows/format.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build:
1317
runs-on: ubuntu-22.04
@@ -23,4 +27,3 @@ jobs:
2327
- name: check code format
2428
run: |
2529
clang-format-15 --style=file --Werror --dry-run --verbose `find . -type d \( -name '3rdparty' \) -prune -o -regex '.*\.\(cpp\|hpp\)' -print`
26-

.github/workflows/linux-build.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
1116
jobs:
1217
build:
1318
strategy:
@@ -68,4 +73,3 @@ jobs:
6873
- name: unit tests
6974
run: |
7075
cmake --build build --target test
71-

.github/workflows/qt5.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build:
1317
runs-on: ubuntu-22.04
@@ -74,4 +78,3 @@ jobs:
7478
(cd examples/CalcQt; cucumber)
7579
wait %
7680
done
77-

.github/workflows/run-all.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build-linux:
1317
runs-on: ubuntu-22.04

.github/workflows/windows-build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build:
1317
strategy:

0 commit comments

Comments
 (0)