Skip to content

Commit

Permalink
Add concurrency to avoid duplicate flows
Browse files Browse the repository at this point in the history
  • Loading branch information
cwellm committed Jan 29, 2024
1 parent 5ffae18 commit 77f8a8b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
6 changes: 5 additions & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -68,4 +73,3 @@ jobs:
- name: unit tests
run: |
cmake --build build --target test
5 changes: 4 additions & 1 deletion .github/workflows/qt5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -74,4 +78,3 @@ jobs:
(cd examples/CalcQt; cucumber)
wait %
done
4 changes: 4 additions & 0 deletions .github/workflows/run-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 77f8a8b

Please sign in to comment.