Skip to content

Commit

Permalink
action:clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed May 16, 2023
1 parent ced19b9 commit e1b844b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/auto clang format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ jobs:
# format the latest commit
- name: ubuntu install clang-format
run: |
sudo apt-get install clang-format git
sudo apt-get install git lsb-release wget software-properties-common
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh
rm -f llvm.sh
sudo apt-get update
sudo apt-get install -y clang-format
git-clang-format --style=file HEAD^
git diff --staged
Expand Down

0 comments on commit e1b844b

Please sign in to comment.