CI: cancel older concurrent PR runs
Remove the space in the workflow name to ensure there are no side effects when using it as an identifier. Signed-off-by: Axel Heider <axelheider@gmx.de>
This commit is contained in:
parent
eda441ebe7
commit
91ec17c5bf
3 changed files with 38 additions and 3 deletions
15
.github/workflows/sel4bench-pr.yml
vendored
15
.github/workflows/sel4bench-pr.yml
vendored
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
# Build and run sel4bench on pull requests, on label request
|
||||
|
||||
name: seL4Bench PR
|
||||
name: seL4Bench-HW
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
|
@ -14,6 +14,19 @@ on:
|
|||
permissions:
|
||||
contents: read
|
||||
|
||||
# To reduce the load (especiually on the machine queue) we cancel any older runs
|
||||
# of this workflow for the current PR. Such runs exist, if there were new pushes
|
||||
# to the PR's branch without waiting for the workflow to finish. As a side
|
||||
# effect, pushing new commits now becomes a convenient way to cancel all the
|
||||
# older runs, e.g. if they are stuck and would only be stopped by the timeout
|
||||
# eventually.
|
||||
# Note that we could do the concurrency handling at a finer level, and only wrap
|
||||
# the actual run on the hardware. But there seems not much gain in letting the
|
||||
# older builds run, as these are usually obsolete with new pushes also.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-pr-${{ github.event.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
code:
|
||||
name: Freeze Code
|
||||
|
|
|
|||
15
.github/workflows/sel4test-hw.yml
vendored
15
.github/workflows/sel4test-hw.yml
vendored
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# See sel4test-hw/builds.yml in the repo seL4/ci-actions for configs.
|
||||
|
||||
name: seL4Test HW
|
||||
name: seL4Test-HW
|
||||
|
||||
on:
|
||||
# needs PR target for secrets access; guard by requiring label
|
||||
|
|
@ -17,6 +17,19 @@ on:
|
|||
permissions:
|
||||
contents: read
|
||||
|
||||
# To reduce the load (especiually on the machine queue) we cancel any older runs
|
||||
# of this workflow for the current PR. Such runs exist, if there were new pushes
|
||||
# to the PR's branch without waiting for the workflow to finish. As a side
|
||||
# effect, pushing new commits now becomes a convenient way to cancel all the
|
||||
# older runs, e.g. if they are stuck and would only be stopped by the timeout
|
||||
# eventually.
|
||||
# Note that we could do the concurrency handling at a finer level, and only wrap
|
||||
# the actual run on the hardware. But there seems not much gain in letting the
|
||||
# older builds run, as these are usually obsolete with new pushes also.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-pr-${{ github.event.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
hw-build:
|
||||
name: HW Build
|
||||
|
|
|
|||
11
.github/workflows/sel4test-sim.yml
vendored
11
.github/workflows/sel4test-sim.yml
vendored
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# See sel4test-sim/builds.yml in the repo seL4/ci-actions for configs.
|
||||
|
||||
name: seL4Test Sim
|
||||
name: seL4Test-Sim
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
|
@ -15,6 +15,15 @@ on:
|
|||
- 'LICENSES/**'
|
||||
- '*.md'
|
||||
|
||||
# To reduce the load we cancel any older runs of this workflow for the current
|
||||
# PR. Such runs exist, if there were new pushes to the PR's branch without
|
||||
# waiting for the workflow to finish. As a side effect, pushing new commits now
|
||||
# becomes a convenient way to cancel all the older runs, e.g. if they are stuck
|
||||
# and would only be stopped by the timeout eventually.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-pr-${{ github.event.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
sim:
|
||||
name: Simulation
|
||||
|
|
|
|||
Loading…
Reference in a new issue