Add clang-format

This commit is contained in:
Sebastian Ranoszek 2025-04-04 19:59:17 +02:00
parent 5501128100
commit 2b80bf5bed

View file

@ -1,11 +1,4 @@
steps: steps:
- name: Format-Code
image: alpine
commands:
- apk add --no-cache g++ libc-dev git clang clang-extra-tools
- echo "Formatting project..."
- find ./ -type f -name "*.cpp" -o -name "*.h" | xargs clang-format -i
- name: Build - name: Build
image: alpine image: alpine
commands: commands:
@ -58,17 +51,6 @@ steps:
- Build - Build
- Test-Debian - Test-Debian
- name: push-commit
image: appleboy/drone-git-push
settings:
remote_name: origin
commit_message: "Apply clang-format changes [skip ci]"
commit: true
ssh_key:
from_secret: PUSH_SSH
depends_on:
- Confirm-Build
- name: Release - name: Release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings: