-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into mcard2
- Loading branch information
Showing
5 changed files
with
424 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Check Format | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-24.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
# Checkout the repository (shallow clone) | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
# Set Git config | ||
- name: Git config | ||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
|
||
# Run formatter | ||
- name: Run clang-format | ||
run: ./format | ||
|
||
# Cancel if there's a diff | ||
- name: Check status | ||
run: git diff --name-only --exit-code |
Oops, something went wrong.