Skip to content

Commit

Permalink
Adopt GitHub concurrency & cancellation (project-chip#7669)
Browse files Browse the repository at this point in the history
* First shot at concurrency

* Only doing one bloat check at once

* Adding more

* Limiting these runs too
  • Loading branch information
woody-apple authored and Nikita committed Sep 23, 2021
1 parent 05c82ed commit 2b11a1a
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
android:
name: Build Android
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
schedule:
- cron: '0 * * * *' # every hour

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
delete-artifacts:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
schedule:
- cron: "*/5 * * * *"

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
pull_request_update:
name: Report on pull requests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
build_linux:
name: Build on Linux
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
darwin:
name: Build Darwin
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/doxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.workflow }}
cancel-in-progress: true

jobs:
doxygen:
name: Build Doxygen
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
efr32:
name: EFR32
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
# TODO ESP32 https://github.com/project-chip/connectedhomeip/issues/1510
esp32:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
k32w:
name: K32W
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
linux_standalone:
name: Linux Standalone
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
nrfconnect:
name: nRF Connect SDK
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-qpg6100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
qpg6100:
name: QPG6100
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
telink:
name: Telink
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
schedule:
- cron: "*/5 * * * *"

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
triage:
name: Label Categories
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
qemu:
name: ESP32
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
unit_tests:
name: Unit / Interation Tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/zap_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true

jobs:
zap_templates:
name: ZAP templates generation
Expand Down

0 comments on commit 2b11a1a

Please sign in to comment.