Skip to content

Commit 68d6c3f

Browse files
authored
ci(fix): add concurrency build limit (#5157)
Description GHA add concurrency build limit Motivation and Context Reduce concurrent builds, so that new branch pushes cancel previous running builds. How Has This Been Tested? Tested in local fork with multi pushes.
1 parent 0e83463 commit 68d6c3f

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

.github/workflows/base_node_binaries.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ name: Build Matrix of Binaries
1616
required: true
1717
default: "development-tag"
1818

19-
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref }}
21-
cancel-in-progress: true
22-
2319
env:
2420
TBN_FILENAME: "tari_suite"
2521
TBN_BUNDLEID_BASE: "com.tarilabs.pkg"
2622
toolchain: nightly-2022-11-03
2723
matrix-json-file: ".github/workflows/base_node_binaries.json"
2824
CARGO_HTTP_MULTIPLEXING: false
2925

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: true
29+
3030
jobs:
3131
matrix-prep:
3232
runs-on: ubuntu-latest

.github/workflows/build_dockers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ name: Build docker images
4949
env:
5050
toolchain_default: nightly-2022-11-03
5151

52+
concurrency:
53+
group: ${{ github.workflow }}-${{ github.ref }}
54+
cancel-in-progress: true
55+
5256
jobs:
5357
builds_envs_setup:
5458
runs-on: ubuntu-latest

.github/workflows/build_libwallets.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ name: Build libwallets
2424
env:
2525
toolchain_default: nightly-2022-11-03
2626

27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: true
30+
2731
jobs:
2832
builds_envs_setup:
2933
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ env:
2121
PROTOC: protoc
2222
TERM: unkown
2323

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
2428
jobs:
2529
clippy:
2630
name: clippy

.github/workflows/coverage.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ name: Source Coverage
1010
env:
1111
toolchain: nightly-2022-11-03
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
coverage:
1519
name: test and generate coverage

.github/workflows/pr_title.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ name: PR
1111
- edited
1212
- synchronize
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
check-title:
1620
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)