Skip to content

Commit

Permalink
Try enforcing concurrency limits to abort stale CI runs (#3434)
Browse files Browse the repository at this point in the history
* Try enforcing concurrency limits to abort stale CI runs

* Test commit to trigger concurrency limits.

* Also enable concurrency for screencapture workflow.
  • Loading branch information
oskirby authored May 4, 2022
1 parent 53ff7eb commit e91c9c0
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/android_qt6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- main
- 'releases/**'

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

jobs:
compile-android-qt6:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/functional_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- main
- 'releases/**'

# Restrict tests to the most recent commit.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_test_app:
name: Build Test Client
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ios-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
- main
- 'releases/**'

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

jobs:
macos:
name: iOS build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- 'releases/**'
types: [ opened, synchronize, reopened ]

jobs:
linter:
runs-on: ubuntu-20.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- main
- 'releases/**'

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

jobs:
source-bundle:
name: Source Bundle
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/macos-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- main
- 'releases/**'

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

jobs:
macos:
name: MacOS packages
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/screencapture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- main
- 'releases/**'

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

jobs:
screencapture:
name: Screencapture
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_lottie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- main
- 'releases/**'

# Restrict tests to the most recent commit.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linux-lottie-tests:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test_qml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- main
- 'releases/**'

# Restrict tests to the most recent commit.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linux-qml-tests:
runs-on: ubuntu-20.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- main
- 'releases/**'

# Restrict tests to the most recent commit.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linux-unit-tests:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- main
- 'releases/**'

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

jobs:
wasmQt6:
name: Wasm Qt6
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- main
- 'releases/**'

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

jobs:
windows:
name: Windows build
Expand Down

0 comments on commit e91c9c0

Please sign in to comment.