Skip to content

Commit 19fbf21

Browse files
committed
ci: use concurrency to cancel redundant in‑flight runs
Use the concurrency feature to cancel any in‑progress run before starting the next one, so only the latest CI run executes; all earlier ones get canceled Signed-off-by: Ruowen Qin <ruowenq2@illinois.edu>
1 parent 368ffa2 commit 19fbf21

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/meson.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: Meson Build and Test
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref_name }}
5+
cancel-in-progress: true
6+
27
on:
38
push:
49
branches: [main, ci]

.github/workflows/nix.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: Meson Build and Test via nix
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref_name }}
5+
cancel-in-progress: true
6+
27
on:
38
push:
49
branches: [main, ci]

0 commit comments

Comments
 (0)