Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: cancel older concurrent PR runs #181

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/sel4test-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,6 +17,11 @@ on:
permissions:
contents: read

# Cancel older runs to reduce the load, especially on the machine queue.
concurrency:
group: ${{ github.workflow }}-pr-${{ github.event.number }}
cancel-in-progress: true

jobs:
hw-build:
name: HW Build
Expand Down Expand Up @@ -80,7 +85,6 @@ jobs:
with:
repository: seL4/machine_queue
path: machine_queue
token: ${{ secrets.PRIV_REPO_TOKEN }}
- name: Download image
uses: actions/download-artifact@v4
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/sel4test-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@
#
# See sel4test-sim/builds.yml in the repo seL4/ci-actions for configs.

name: seL4Test Sim
name: seL4Test-Sim

on:
push:
branches: [master]
pull_request:

# Cancel older runs to reduce the load. The workflow also runs on pushes to
# the master brnach, but skipping or cancellation will not happen there
# practically due to the unique run ID.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('run-{0}', github.run_id) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
simulation:
name: Simulation
Expand Down