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

Merge #33

Merged
merged 20 commits into from
Apr 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create clang_format.yml
Nighty3098 authored Apr 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c0ac04e93805863c9cfc92291cd4147c532e7a34
31 changes: 31 additions & 0 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Clang Format

on:
push:
branches:
- main
- InDev
pull_request:

jobs:
clang-format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch the entire repository history

- name: Setup Clang-Format
uses: tamasfe/setup-clang-format@v1

- name: Format C++ files
run: |
find . -type f -name '*.cpp' -o -name '*.hpp' -exec clang-format -i -style=file {} +
- name: Upload formatted files
uses: actions/upload-artifact@v2
with:
name: formatted-files
path: .