From e91c9c04427083ff3e4841edc2149b0a1e27e2c3 Mon Sep 17 00:00:00 2001 From: Owen Kirby Date: Tue, 3 May 2022 22:04:56 -0700 Subject: [PATCH] Try enforcing concurrency limits to abort stale CI runs (#3434) * Try enforcing concurrency limits to abort stale CI runs * Test commit to trigger concurrency limits. * Also enable concurrency for screencapture workflow. --- .github/workflows/android_qt6.yaml | 3 +++ .github/workflows/functional_tests.yaml | 5 +++++ .github/workflows/ios-build.yaml | 4 ++++ .github/workflows/linters.yaml | 1 + .github/workflows/linux.yaml | 4 ++++ .github/workflows/macos-build.yaml | 4 ++++ .github/workflows/screencapture.yaml | 4 ++++ .github/workflows/test_lottie.yaml | 4 ++++ .github/workflows/test_qml.yaml | 5 +++++ .github/workflows/test_unit.yaml | 4 ++++ .github/workflows/wasm.yaml | 4 ++++ .github/workflows/windows-build.yaml | 4 ++++ 12 files changed, 46 insertions(+) diff --git a/.github/workflows/android_qt6.yaml b/.github/workflows/android_qt6.yaml index f58f16c3fa..51a04ab9e2 100644 --- a/.github/workflows/android_qt6.yaml +++ b/.github/workflows/android_qt6.yaml @@ -9,6 +9,9 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: compile-android-qt6: diff --git a/.github/workflows/functional_tests.yaml b/.github/workflows/functional_tests.yaml index a6c1dc6d32..52e86f3900 100644 --- a/.github/workflows/functional_tests.yaml +++ b/.github/workflows/functional_tests.yaml @@ -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 diff --git a/.github/workflows/ios-build.yaml b/.github/workflows/ios-build.yaml index e88278cb15..b2dea8785d 100644 --- a/.github/workflows/ios-build.yaml +++ b/.github/workflows/ios-build.yaml @@ -14,6 +14,10 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: macos: name: iOS build diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 92e3de22c3..c6a72ac949 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -6,6 +6,7 @@ on: - main - 'releases/**' types: [ opened, synchronize, reopened ] + jobs: linter: runs-on: ubuntu-20.04 diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 40aa423787..8f5820a97c 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -9,6 +9,10 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: source-bundle: name: Source Bundle diff --git a/.github/workflows/macos-build.yaml b/.github/workflows/macos-build.yaml index 9cc5ac850d..4eeb41f4c0 100644 --- a/.github/workflows/macos-build.yaml +++ b/.github/workflows/macos-build.yaml @@ -10,6 +10,10 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: macos: name: MacOS packages diff --git a/.github/workflows/screencapture.yaml b/.github/workflows/screencapture.yaml index 3a5de894f8..c6e060bb0b 100644 --- a/.github/workflows/screencapture.yaml +++ b/.github/workflows/screencapture.yaml @@ -9,6 +9,10 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: screencapture: name: Screencapture diff --git a/.github/workflows/test_lottie.yaml b/.github/workflows/test_lottie.yaml index 2f2214e22f..fcf9be3d14 100644 --- a/.github/workflows/test_lottie.yaml +++ b/.github/workflows/test_lottie.yaml @@ -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: diff --git a/.github/workflows/test_qml.yaml b/.github/workflows/test_qml.yaml index 32bc993226..75151bc186 100644 --- a/.github/workflows/test_qml.yaml +++ b/.github/workflows/test_qml.yaml @@ -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 diff --git a/.github/workflows/test_unit.yaml b/.github/workflows/test_unit.yaml index 07cdfbb0aa..b21d423fc7 100644 --- a/.github/workflows/test_unit.yaml +++ b/.github/workflows/test_unit.yaml @@ -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: diff --git a/.github/workflows/wasm.yaml b/.github/workflows/wasm.yaml index 1e46a1f05e..aea291a9b8 100644 --- a/.github/workflows/wasm.yaml +++ b/.github/workflows/wasm.yaml @@ -10,6 +10,10 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: wasmQt6: name: Wasm Qt6 diff --git a/.github/workflows/windows-build.yaml b/.github/workflows/windows-build.yaml index 62c0311081..3896c6dbc0 100644 --- a/.github/workflows/windows-build.yaml +++ b/.github/workflows/windows-build.yaml @@ -10,6 +10,10 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: windows: name: Windows build