Skip to content

ci: limit build matrix to relevant paths - #19

Merged
zuudevs merged 1 commit into
mainfrom
ci/relevant-path-filters-v2
Sep 15, 2026
Merged

zuudevs merged 1 commit into
mainfrom
ci/relevant-path-filters-v2

Conversation

@zuudevs

@zuudevs zuudevs commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Summary

Recreates the CI path-filter change cleanly on top of current main after PR #17 was merged and the original stacked base branch was deleted.

CI now runs for

  • include/**
  • src/**
  • tests/**
  • benchmarks/**
  • examples/**
  • cmake/**
  • root CMakeLists.txt
  • vcpkg.json
  • vcpkg-configuration.json
  • .github/workflows/ci.yml

The same allowlist applies to pushes to main/master and pull requests targeting those branches.

CI no longer runs for documentation-only changes

Examples:

  • docs/**
  • README.md
  • Markdown-only planning/API documentation
  • repository metadata unrelated to the C++ build

Recovery note

The original PR #18 was stacked on top of refactor/src-layout. After #17 merged, that temporary base branch was deleted, so GitHub could not reopen/retarget #18. This PR is recreated from current main and contains only .github/workflows/ci.yml.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38cccf77e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
- '.github/workflows/ci.yml'
pull_request:
branches: [ main, master ]
paths:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep required checks present for filtered pull requests

When a matrix job from this workflow is configured as a required branch-protection check, a pull request that changes only an excluded path (such as docs/**) skips the entire workflow, so GitHub leaves the expected check pending and the pull request cannot be merged. Keep the pull_request trigger unconditional and perform path detection within the workflow, with an always-reported gate job, so documentation-only changes can satisfy required checks without running the build matrix.

Useful? React with 👍 / 👎.

@zuudevs
zuudevs merged commit 9b516cd into main Sep 15, 2026
6 checks passed
@zuudevs
zuudevs deleted the ci/relevant-path-filters-v2 branch September 15, 2026 00:11
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