Skip to content
Closed
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 Preserve required CI checks for filtered pull requests

When any matrix check from this workflow is required by branch protection, a documentation-only PR matching none of these paths will never create that check, leaving the PR blocked in Pending rather than merely avoiding the expensive jobs. GitHub explicitly documents this behavior for workflow-level path filtering, so keep the workflow trigger unconditional and perform the path decision inside a lightweight job or expose a separate always-running required check. GitHub workflow syntax

Useful? React with 👍 / 👎.

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

jobs:
build:
Expand Down