Skip to content

Commit b7a3ed6

Browse files
committed
Specify workflow concurrency groups
This ensures that only the latest action for each workflow runs. If multiple commits happen in quick succession (or at least before a workflow run finishes), we are likely to only be interested in the results for the last commit. This does, however, complicate identifying which commit led to a failed build, but so long as logging, etc is plentiful, we should be able to track down the issue. At a minimum, specifying concurrency groups is necessary to reduce our carbon footprint.
1 parent f67f698 commit b7a3ed6

10 files changed

Lines changed: 90 additions & 0 deletions

.github/workflows/linux_benchmark.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ on:
3030
# Allow the workflow to be manually run:
3131
workflow_dispatch:
3232

33+
# Workflow concurrency group:
34+
concurrency:
35+
36+
# Specify a group name:
37+
group: ${{ github.workflow }}
38+
39+
# Specify whether to cancel any currently workflow in the same concurrency group:
40+
cancel-in-progress: true
41+
3342
# Workflow jobs:
3443
jobs:
3544

.github/workflows/linux_examples.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ on:
3030
# Allow the workflow to be manually run:
3131
workflow_dispatch:
3232

33+
# Workflow concurrency group:
34+
concurrency:
35+
36+
# Specify a group name:
37+
group: ${{ github.workflow }}
38+
39+
# Specify whether to cancel any currently workflow in the same concurrency group:
40+
cancel-in-progress: true
41+
3342
# Workflow jobs:
3443
jobs:
3544

.github/workflows/linux_test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ on:
2828
# Allow the workflow to be manually run:
2929
workflow_dispatch:
3030

31+
# Workflow concurrency group:
32+
concurrency:
33+
34+
# Specify a group name:
35+
group: ${{ github.workflow }}
36+
37+
# Specify whether to cancel any currently workflow in the same concurrency group:
38+
cancel-in-progress: true
39+
3140
# Workflow jobs:
3241
jobs:
3342

.github/workflows/linux_test_cov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ on:
3030
# Allow the workflow to be manually run:
3131
workflow_dispatch:
3232

33+
# Workflow concurrency group:
34+
concurrency:
35+
36+
# Specify a group name:
37+
group: ${{ github.workflow }}
38+
39+
# Specify whether to cancel any currently workflow in the same concurrency group:
40+
cancel-in-progress: true
41+
3342
# Workflow jobs:
3443
jobs:
3544

.github/workflows/linux_test_npm_install.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ on:
2828
# Allow the workflow to be manually run:
2929
workflow_dispatch:
3030

31+
# Workflow concurrency group:
32+
concurrency:
33+
34+
# Specify a group name:
35+
group: ${{ github.workflow }}
36+
37+
# Specify whether to cancel any currently workflow in the same concurrency group:
38+
cancel-in-progress: true
39+
3140
# Workflow jobs:
3241
jobs:
3342

.github/workflows/macos_benchmark.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ on:
3030
# Allow the workflow to be manually run:
3131
workflow_dispatch:
3232

33+
# Workflow concurrency group:
34+
concurrency:
35+
36+
# Specify a group name:
37+
group: ${{ github.workflow }}
38+
39+
# Specify whether to cancel any currently workflow in the same concurrency group:
40+
cancel-in-progress: true
41+
3342
# Workflow jobs:
3443
jobs:
3544

.github/workflows/macos_test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ on:
2828
# Allow the workflow to be manually run:
2929
workflow_dispatch:
3030

31+
# Workflow concurrency group:
32+
concurrency:
33+
34+
# Specify a group name:
35+
group: ${{ github.workflow }}
36+
37+
# Specify whether to cancel any currently workflow in the same concurrency group:
38+
cancel-in-progress: true
39+
3140
# Workflow jobs:
3241
jobs:
3342

.github/workflows/macos_test_cov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ on:
3030
# Allow the workflow to be manually run:
3131
workflow_dispatch:
3232

33+
# Workflow concurrency group:
34+
concurrency:
35+
36+
# Specify a group name:
37+
group: ${{ github.workflow }}
38+
39+
# Specify whether to cancel any currently workflow in the same concurrency group:
40+
cancel-in-progress: true
41+
3342
# Workflow jobs:
3443
jobs:
3544

.github/workflows/macos_test_npm_install.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ on:
2828
# Allow the workflow to be manually run:
2929
workflow_dispatch:
3030

31+
# Workflow concurrency group:
32+
concurrency:
33+
34+
# Specify a group name:
35+
group: ${{ github.workflow }}
36+
37+
# Specify whether to cancel any currently workflow in the same concurrency group:
38+
cancel-in-progress: true
39+
3140
# Workflow jobs:
3241
jobs:
3342

.github/workflows/windows_test_npm_install.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ on:
2828
# Allow the workflow to be manually run:
2929
workflow_dispatch:
3030

31+
# Workflow concurrency group:
32+
concurrency:
33+
34+
# Specify a group name:
35+
group: ${{ github.workflow }}
36+
37+
# Specify whether to cancel any currently workflow in the same concurrency group:
38+
cancel-in-progress: true
39+
3140
# Workflow jobs:
3241
jobs:
3342

0 commit comments

Comments
 (0)