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
Signed-off-by: Frank Osterfeld <[email protected]>
  • Loading branch information
frankosterfeld authored and wirew0rm committed Jan 1, 2025
1 parent c9af3c1 commit efeaf57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
name: "${{ matrix.compiler.cc }} | ${{ matrix.cmake-build-type }}"
needs: buildAndPublishDocker
runs-on: "ubuntu-latest"
concurrency:
# Cancel running builds inside work (PR) branches, build all revisions for the main branch
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.compiler.cc }}-${{ matrix.cmake-build-type }}
cancel-in-progress: true
container:
image: "${{ needs.buildAndPublishDocker.outputs.container }}"
strategy:
Expand Down

0 comments on commit efeaf57

Please sign in to comment.