Skip to content

Commit

Permalink
ENH: GHA: cancel in progress builds for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit authored and SimonRit committed Dec 11, 2024
1 parent 31626c5 commit f2c255c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-test-cxx-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ env:
itk-git-tag: "v5.4.0"
itk-module-deps: "CudaCommon@cae7c93c2f6d4c5b3cb5f6e5ce4a97686e626bf7"

concurrency:
group: '${{ github.workflow }}@${{ github.head_ref || github.run_id }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build-test-cxx:
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-test-package-python-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ env:
itk-python-package-org: 'SimonRit'
itk-module-deps: "RTKConsortium/ITKCudaCommon@cae7c93c2f6d4c5b3cb5f6e5ce4a97686e626bf7"

concurrency:
group: '${{ github.workflow }}@${{ github.head_ref || github.run_id }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build-linux-cuda-python-packages:
runs-on: self-hosted-linux
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Build, test, package

on: [push,pull_request]

concurrency:
group: '${{ github.workflow }}@${{ github.head_ref || github.run_id }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
cxx-build-workflow:
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/[email protected]
Expand Down

0 comments on commit f2c255c

Please sign in to comment.