Skip to content

Commit d9e67fd

Browse files
committed
ci: better pipeline config
- cancel builds in progress for a ref if another commit is pushed - avoid multiple duplicate builds on pull request pushes - allow workflow dispatch in a pinch
1 parent 831d929 commit d9e67fd

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
name: CI
2-
on: [push, pull_request]
2+
concurrency:
3+
group: "${{github.workflow}}-${{github.ref}}"
4+
cancel-in-progress: true
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
tags:
11+
- v*.*.*
12+
pull_request:
13+
types: [opened, synchronize]
14+
branches:
15+
- '*'
16+
317
jobs:
418
tests:
519
runs-on: ubuntu-latest

.github/workflows/gem-install.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
name: Native Gems
2-
on: [push, pull_request]
2+
concurrency:
3+
group: "${{github.workflow}}-${{github.ref}}"
4+
cancel-in-progress: true
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
tags:
11+
- v*.*.*
12+
pull_request:
13+
types: [opened, synchronize]
14+
branches:
15+
- '*'
16+
317
jobs:
418
package:
519
strategy:

0 commit comments

Comments
 (0)