SWDEV-123456 auto clang-format (#482)
* SWDEV-123456 - add clang-format script and pre-commit hook
[ROCm/clr commit: 580a8759dd]
Este commit está contenido en:
1 padre
2001b250b5
commit
89b5c1d9bf
4 files changed
+70
-7
No files matched your search
@@ -0,0 +1,22 @@
|
||||
name: Clang format check
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install clang-format
|
||||
run: |
|
||||
sudo apt update && sudo apt install -y clang-format
|
||||
|
||||
- name: Run clang-format-check
|
||||
id: clang-format
|
||||
run: |
|
||||
chmod +x .github/hooks/clang-format-check.sh
|
||||
./.github/hooks/clang-format-check.sh --range "${{ github.event.before }}..${{ github.sha }}"
|
||||
Reference in new issue
Block a user