2023-12-19 15:28:38 +00:00
|
|
|
name: clang-format
|
2022-04-06 06:27:52 +00:00
|
|
|
|
2022-04-11 06:49:20 +00:00
|
|
|
on: [push, pull_request]
|
2022-04-06 06:27:52 +00:00
|
|
|
|
2024-02-19 22:09:24 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-format-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-04-06 06:27:52 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-02-19 22:09:24 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: DoozyX/clang-format-lint-action@v0.16.2
|
|
|
|
name: clang-format
|
|
|
|
with:
|
|
|
|
source: "."
|
|
|
|
extensions: "hpp,h,cpp,c"
|
2024-09-13 06:55:14 +00:00
|
|
|
style: "file:.clang-format"
|
2024-09-13 07:02:23 +00:00
|
|
|
clangFormatVersion: 18
|