mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Introduce clang-format (#240)
This commit is contained in:

committed by
GitHub

parent
e928fc9425
commit
b449da1fa3
20
.github/workflows/format.yml
vendored
Normal file
20
.github/workflows/format.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Format
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
clang-format:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Run clang-format
|
||||
run: |
|
||||
pipx run "clang-format>=17,<18" \
|
||||
--Werror \
|
||||
--dry-run \
|
||||
--style=file \
|
||||
ISLE/*.cpp ISLE/*.h \
|
||||
LEGO1/*.cpp LEGO1/*.h \
|
||||
LEGO1/realtime/*.cpp LEGO1/realtime/*.h
|
Reference in New Issue
Block a user