Skip to content

Commit

Permalink
implement format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Aug 3, 2024
1 parent 027271a commit 073173b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 21 deletions.
18 changes: 0 additions & 18 deletions .clang-format

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -17,4 +17,4 @@ jobs:
if ! make; then
echo "The application has failed to build."
exit 1 # This will cause the workflow to fail
fi
fi
20 changes: 20 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Code Style Check

on: [push]

jobs:
formatting-check:
name: Check format of C
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Run clang-format style check for C/C++ sources
uses: Northeastern-Electric-Racing/clang-format-action@main
with:
clang-format-version: '18'
# only check core, embedded base covered internally
check-path: "Core/"
# use the clang-format from embedded base
format-filepath: "./Drivers/Embedded-Base/clang-format"
6 changes: 6 additions & 0 deletions Core/.clang-format-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
./*/stm32*
./*/sys*
./*/FreeRTOS*
./*/freertos*
./*/main*
./Startup/*
2 changes: 1 addition & 1 deletion Drivers/Embedded-Base

0 comments on commit 073173b

Please sign in to comment.