-
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.
Document some CPU functions and add format workflow (#178)
* port stuff from oot-vc * build issues * missed one wrong type * review
- Loading branch information
Showing
4 changed files
with
235 additions
and
32 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 |
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
Oops, something went wrong.