Skip to content

ci: build only when a file the build reads changes, a workflow or a doc alone starts nothing - #84

Merged
landsman merged 1 commit into
mainfrom
ci/build-only-on-code
Nov 26, 2026
Merged

landsman merged 1 commit into
mainfrom
ci/build-only-on-code

Conversation

@landsman

Copy link
Copy Markdown
Owner

ci ignored only Markdown, so a pull request adding a workflow or .gitignore ran the builds, the native image and the scripts for nothing. It now runs only when a file its jobs read changes: the modules, testing/, examples/, tools/ and buildSrc/, Gradle with its properties and wrapper, the Makefile, the scripts under bin/ with the mise.toml that pins shellcheck, and ci.yml itself. One list, anchored, serves push and pull request.

The catch of a positive list: a file the build starts reading outside it must be added, or its change merges untested. main is not protected, so a skipped check blocks no merge.

security gains the Markdown filter; the Monday run still scans the whole tree. It still runs on a workflow change, which semgrep's p/ci reads.

@landsman
landsman merged commit 6b975e0 into main Nov 26, 2026
7 checks passed
@landsman
landsman deleted the ci/build-only-on-code branch November 26, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant