Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0958055
Run auto format only on commits with the lowercase words `auto` and `…
dchansen06 Aug 18, 2026
4d65ff9
Normal change
dchansen06 Aug 18, 2026
53afde9
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
62d7f8d
Normal change
dchansen06 Aug 18, 2026
7b20718
Not PR title, commit message
dchansen06 Aug 18, 2026
fd086db
Normal change
dchansen06 Aug 18, 2026
daf3488
Normal change
dchansen06 Aug 18, 2026
4a36f06
Normal change
dchansen06 Aug 18, 2026
791f165
Not normal change [autoformat]
dchansen06 Aug 18, 2026
039907c
Fix how auto formatters are conditionaled
dchansen06 Aug 18, 2026
77160c5
Pin checkout sha
dchansen06 Aug 18, 2026
fd85d68
Try to format
dchansen06 Aug 18, 2026
cb11c11
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
4227af7
Automatic Json Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
8bcd22c
Automatic Assembly Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
d267231
Automatic Clang-Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
be8018b
Normal change
dchansen06 Aug 18, 2026
50d9750
Speed up clang formatting
dchansen06 Aug 18, 2026
38488e9
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
633f0cc
Speedup clang format again
dchansen06 Aug 18, 2026
454483e
Assembly change
dchansen06 Aug 18, 2026
07f2565
CMake change
dchansen06 Aug 18, 2026
8e10ef9
Json change
dchansen06 Aug 18, 2026
4dc0930
C change
dchansen06 Aug 18, 2026
9b08211
Format
dchansen06 Aug 18, 2026
90b3faa
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
900587f
Automatic Json Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
c9a5d5b
Automatic Clang-Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
43446ac
Automatic Assembly Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
7e47a07
Perl change
dchansen06 Aug 18, 2026
64bfd47
Format perl
dchansen06 Aug 18, 2026
6a94f8c
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
ceba193
Automatic Perl Tidy: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
a1bfb83
Changes
dchansen06 Aug 18, 2026
2b3c797
Automatic Json Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
2adfd3d
Interrupt
dchansen06 Aug 18, 2026
2801045
Automatic Json Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
4150abc
Automatic Perl Tidy: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
12ecf93
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
87e364d
Automatic Clang-Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
0290264
Automatic Assembly Format: Standardized formatting automatically
github-actions[bot] Aug 18, 2026
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
42 changes: 36 additions & 6 deletions .github/workflows/AutoFormat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,34 @@ concurrency:
cancel-in-progress: true

jobs:
conditional:
name: Conditional Formatting Check
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
run_format: ${{ steps.conditional_check.outputs.run_format }}
steps:
- name: Checkout Pull Request
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.ref }}

- name: Conditional Check
id: conditional_check
run: |
if [ "${{ github.event.pull_request.draft }}" != "true" ]; then
echo "run_format=true" >> "$GITHUB_OUTPUT"
elif git log -1 --pretty=%B | grep -iq "format"; then
echo "run_format=true" >> "$GITHUB_OUTPUT"
else
echo "run_format=false" >> "$GITHUB_OUTPUT"
fi

clang:
if: ${{ !github.event.pull_request.draft }}
needs: conditional
if: ${{ needs.conditional.outputs.run_format == 'true' }}
name: Clang
runs-on: ubuntu-latest
permissions:
Expand All @@ -36,7 +62,7 @@ jobs:
echo "<details open><summary>Clang-Format Output</summary>" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
git ls-files '*.c' '*.h' | xargs -r clang-format -i --verbose 2>&1 | tee -a $GITHUB_STEP_SUMMARY
git ls-files '*.c' '*.h' | parallel clang-format -i --verbose 2>&1 | tee -a $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "</details>" >> $GITHUB_STEP_SUMMARY
Expand All @@ -52,7 +78,8 @@ jobs:
fetch: "false"

cmake:
if: ${{ !github.event.pull_request.draft }}
needs: conditional
if: ${{ needs.conditional.outputs.run_format == 'true' }}
name: CMake
runs-on: ubuntu-slim
permissions:
Expand Down Expand Up @@ -90,7 +117,8 @@ jobs:
fetch: "false"

json:
if: ${{ !github.event.pull_request.draft }}
needs: conditional
if: ${{ needs.conditional.outputs.run_format == 'true' }}
name: Json
runs-on: ubuntu-slim
permissions:
Expand Down Expand Up @@ -125,7 +153,8 @@ jobs:
fetch: "false"

perl:
if: ${{ !github.event.pull_request.draft }}
needs: conditional
if: ${{ needs.conditional.outputs.run_format == 'true' }}
name: Perl
runs-on: ubuntu-slim
permissions:
Expand Down Expand Up @@ -165,7 +194,8 @@ jobs:
fetch: "false"

asm:
if: ${{ !github.event.pull_request.draft }}
needs: conditional
if: ${{ needs.conditional.outputs.run_format == 'true' }}
name: Assembly
runs-on: ubuntu-slim
permissions:
Expand Down
1 change: 0 additions & 1 deletion Lib/Platform/STM32G474xE/startup_stm32g474xx.s
Original file line number Diff line number Diff line change
Expand Up @@ -593,4 +593,3 @@ g_pfnVectors:

.weak FMAC_IRQHandler
.thumb_set FMAC_IRQHandler,Default_Handler

1 change: 0 additions & 1 deletion Lib/Platform/STM32L476xG/startup_stm32l476xx.s
Original file line number Diff line number Diff line change
Expand Up @@ -511,4 +511,3 @@ g_pfnVectors:

.weak FPU_IRQHandler
.thumb_set FPU_IRQHandler,Default_Handler

Loading