Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,30 @@ name: C++ CI Build
on:
push:
branches: [ main, master ]
paths:
- 'include/**'
- 'src/**'
- 'tests/**'
- 'benchmarks/**'
- 'examples/**'
- 'cmake/**'
- 'CMakeLists.txt'
- 'vcpkg.json'
- 'vcpkg-configuration.json'
- '.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 👍 / 👎.

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

jobs:
build:
Expand Down
Loading