You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
GitHub Action to check if your code is formatted correctly using cmake-format.
This action also provides a Git diff display, making it easy to review code formatting changes.
Usage
Inputs
source (optional): Source file/folder to check formatting or directory path. Defaults to "." (current directory). You can specify multiple values separated by spaces.
exclude (optional): Folders to exclude from the formatting check. Defaults to "none." You can specify multiple values separated by spaces.
config (optional): Use .cmake-format style. Defaults to False.
inplace (optional): Just fix files (cmake-format -i) instead of returning a diff. Defaults to False.
Example Workflow
Here's an example of how to use this action in your GitHub Actions workflow: