Skip to content

Commit

Permalink
Clang suggest (#678)
Browse files Browse the repository at this point in the history
* add clang suggestion

* Update clang-format-suggest.yml

* Update clang-format-suggest.yml

* simplify

* switch to ubuntu

* Update clang-format-suggest.yml

* update ubuntu

---------

Co-authored-by: MegaMech <[email protected]>
  • Loading branch information
coco875 and MegaMech authored Sep 11, 2024
1 parent b6ba045 commit 16c5c33
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/clang-format-suggest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: clang-format Suggest
on: [pull_request]
jobs:
formatting-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Dependance
run: |
sudo apt install clang-format make
- name: Run clang-format style check for C/C++/Protobuf programs.
run: |
clang-format --version
python tools/format.py
- uses: parkerbxyz/suggest-changes@v1
with:
comment: 'Please commit the suggested changes from clang-format.'
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: clang-format Check
on: [push, pull_request]
on: [push]
jobs:
formatting-check:
name: Formatting Check
Expand Down

0 comments on commit 16c5c33

Please sign in to comment.