Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add clang-format #987

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

mayank-Pareek
Copy link
Contributor

This closes #953

This PR introduces a GitHub Action to check code formatting using clang-format.

Workflow

  • Runs only on push and pull_request events for include/**/*.h,src/**/*.cpp and src/**/*.h files.
  • Cache check for clang-format-18 to avoid re-installation if it is already installed.
  • Validates formatting using git diff and fails the workflow if unformatted files are detected.

mayank-Pareek and others added 2 commits November 20, 2024 12:07
@cieslarmichal cieslarmichal merged commit 9d578b8 into cieslarmichal:main Nov 20, 2024
12 checks passed
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.

add checking formatting in pipeline
2 participants