Skip to content

Commit

Permalink
CI: Cancel existing builds when PR branch is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
frankosterfeld committed Dec 6, 2024
1 parent 216bc26 commit 37d259f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
name: "${{ matrix.compiler.cc }} | ${{ matrix.cmake-build-type }}"
needs: buildAndPublishDocker
runs-on: "ubuntu-latest"
concurrency:
group: ${{ github.head_ref }} # Unique group identifier for branch
cancel-in-progress: true # Cancel any in-progress runs for the same branch
container:
image: "${{ needs.buildAndPublishDocker.outputs.container }}"
strategy:
Expand Down

0 comments on commit 37d259f

Please sign in to comment.