Skip to content

Commit fb44415

Browse files
author
cuiko
committed
ci: Skip build on doc-only changes and cancel superseded runs
Every push to main triggered a full macOS build, including docs-only commits like README tweaks or CLAUDE.md updates. Add \`paths-ignore\` for markdown, LICENSE, .gitignore, and the uninstall script so CI fires only on changes that can actually break the build, and add a concurrency group so a new push cancels any in-progress run on the same ref instead of letting stale builds eat runner minutes.
1 parent 008de3a commit fb44415

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,23 @@ name: build
33
on:
44
push:
55
branches: [main]
6+
paths-ignore:
7+
- '**.md'
8+
- 'LICENSE'
9+
- '.gitignore'
10+
- 'uninstall.sh'
611
pull_request:
12+
paths-ignore:
13+
- '**.md'
14+
- 'LICENSE'
15+
- '.gitignore'
16+
- 'uninstall.sh'
17+
18+
# Cancel in-progress runs when a new commit supersedes them — no point
19+
# building stale code while a newer push is already queued.
20+
concurrency:
21+
group: build-${{ github.ref }}
22+
cancel-in-progress: true
723

824
jobs:
925
build:

0 commit comments

Comments
 (0)