diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 3636086c..1071a80e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-22.04 @@ -23,4 +27,3 @@ jobs: - name: check code format run: | clang-format-15 --style=file --Werror --dry-run --verbose `find . -type d \( -name '3rdparty' \) -prune -o -regex '.*\.\(cpp\|hpp\)' -print` - diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 5d44cef4..916c2b04 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -8,6 +8,11 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + + jobs: build: strategy: @@ -68,4 +73,3 @@ jobs: - name: unit tests run: | cmake --build build --target test - diff --git a/.github/workflows/qt5.yml b/.github/workflows/qt5.yml index 695338d8..1a9e80fa 100644 --- a/.github/workflows/qt5.yml +++ b/.github/workflows/qt5.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-22.04 @@ -74,4 +78,3 @@ jobs: (cd examples/CalcQt; cucumber) wait % done - diff --git a/.github/workflows/run-all.yml b/.github/workflows/run-all.yml index e6204982..879981ea 100644 --- a/.github/workflows/run-all.yml +++ b/.github/workflows/run-all.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: build-linux: runs-on: ubuntu-22.04 diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 2ba915b6..2025f0f5 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: build: strategy: