Skip to content

Commit

Permalink
add clang-format to ci formatting check
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Oct 24, 2024
1 parent 1d0ee30 commit d98a268
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: pip3 install gersemi
- name: install clang-format
run: |
tmpdir=$(mktemp -d)
curl -L -o "$tmpdir/clang-format" https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-32d3ac78/clang-format-18_linux-amd64
echo "660b67d7460cc77254343b7676d2e44dc65140221361346ee09e365526336747877e2c3e94062771244ea4320de29b42ad8be3ed0eb93c8c7b7ba5fe1de3e961 $tmpdir/clang-format" | sha512sum --check
chmod +x "$tmpdir/clang-format"
echo "$tmpdir" >> $GITHUB_PATH
- run: ./extras/formatting.sh --check-only
2 changes: 1 addition & 1 deletion include/slang.h
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ typedef uint32_t SlangSizeT;
DumpRepro,
DumpReproOnError,
ExtractRepro,
LoadRepro,
LoadRepro ,
LoadReproDirectory,
ReproFallbackDirectory,

Expand Down

0 comments on commit d98a268

Please sign in to comment.