Skip to content

Commit

Permalink
CI: avoid runs from different PR cancelling each other
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
axel-h committed Jan 30, 2024
1 parent 6c949ec commit ed7689d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ jobs:
fail-fast: true
matrix:
march: [nehalem, armv7a, armv8a]
# do not run concurrently with previous jobs in PRs, but do run concurrently in the build matrix
concurrency: camkes-hw-pr-${{ strategy.job-index }}
# Reduce the load on the machine queue by cancelling any older jobs from
# the current PR that are still running. This usually happens if there are
# new pushes to the PR's branch without waiting for the runs to finish. As
# a side effect, pushing becomes a convenient way to cancel all the runs
# that are stuck and would only be stopped by the timeout eventually.
concurrency: pr-${{ github.event.number }}-${{ strategy.job-index }}
steps:
- name: Get machine queue
uses: actions/checkout@v4
Expand Down

0 comments on commit ed7689d

Please sign in to comment.