Skip to content

Commit bf8b16b

Browse files
authored
Adopt GitHub concurrency & cancellation (#7669)
* First shot at concurrency * Only doing one bloat check at once * Adding more * Limiting these runs too
1 parent 1323ca4 commit bf8b16b

17 files changed

+68
-0
lines changed

.github/workflows/android.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
android:
2327
name: Build Android

.github/workflows/artifacts.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
schedule:
44
- cron: '0 * * * *' # every hour
55

6+
concurrency:
7+
group: ${{ github.workflow }}
8+
cancel-in-progress: true
9+
610
jobs:
711
delete-artifacts:
812
runs-on: ubuntu-latest

.github/workflows/bloat_check.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
schedule:
1818
- cron: "*/5 * * * *"
1919

20+
concurrency:
21+
group: ${{ github.workflow }}
22+
cancel-in-progress: true
23+
2024
jobs:
2125
pull_request_update:
2226
name: Report on pull requests

.github/workflows/build.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
pull_request:
2020
workflow_dispatch:
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
24+
cancel-in-progress: true
25+
2226
jobs:
2327
build_linux:
2428
name: Build on Linux

.github/workflows/darwin.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
darwin:
2327
name: Build Darwin

.github/workflows/doxygen.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
pull_request:
2020
workflow_dispatch:
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.workflow }}
24+
cancel-in-progress: true
25+
2226
jobs:
2327
doxygen:
2428
name: Build Doxygen

.github/workflows/examples-efr32.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
efr32:
2327
name: EFR32

.github/workflows/examples-esp32.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
# TODO ESP32 https://github.com/project-chip/connectedhomeip/issues/1510
2327
esp32:

.github/workflows/examples-k32w.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
k32w:
2327
name: K32W

.github/workflows/examples-linux-standalone.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
linux_standalone:
2327
name: Linux Standalone

.github/workflows/examples-nrfconnect.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
nrfconnect:
2327
name: nRF Connect SDK

.github/workflows/examples-qpg6100.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
qpg6100:
2327
name: QPG6100

.github/workflows/examples-telink.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
telink:
2327
name: Telink

.github/workflows/labeler.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
schedule:
1818
- cron: "*/5 * * * *"
1919

20+
concurrency:
21+
group: ${{ github.workflow }}
22+
cancel-in-progress: true
23+
2024
jobs:
2125
triage:
2226
name: Label Categories

.github/workflows/qemu.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
qemu:
2327
name: ESP32

.github/workflows/unit_integration_test.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
unit_tests:
2327
name: Unit / Interation Tests

.github/workflows/zap_templates.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
push:
1919
pull_request:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
zap_templates:
2327
name: ZAP templates generation

0 commit comments

Comments
 (0)