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

Add a source formatting CI #125

Closed
wants to merge 2 commits into from
Closed

Conversation

dgaliffiAMD
Copy link
Collaborator

No description provided.

Signed-off-by: David Galiffi <[email protected]>
Mustaballer pushed a commit that referenced this pull request Jul 12, 2024
Mustaballer added a commit that referenced this pull request Jul 17, 2024
* copy changes from #125

* try running sh script check_format.sh & check_copyright.sh in linting.yml

* add test file and add more logging to check_format.sh for testing

* test ci with unformatted example.cpp file

* run precommit hook on all files

* try specific version of clang-format

* modify check_format.sh to use clang-format

* remove example.cpp and additional logging

* use clang-format-18

* Add missing sudo command to dependencies installation in linting.yml

* use clang-format 18 for precommit-hooks

* revert changes to check_format.sh

* use check_format.sh in ci

* add GIT_CLANG_FORMAT as env variable for script

* fetch all branches in linting.yml

* fix lint error

* add all_files flag to check_format.sh so runs on all files

* Simplify argument parsing for `--all-files` and source commit.

---------

Co-authored-by: Mustaballer <[email protected]>
@dgaliffiAMD dgaliffiAMD deleted the amd/dgaliffi/source-format branch September 5, 2024 14:42
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