-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (28 loc) · 865 Bytes
/
format.yml
File metadata and controls
32 lines (28 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Format
on:
push:
branches: [ master, main ]
paths-ignore: [ '**/result/**', '**.md' ]
pull_request:
branches: [ master, main ]
paths-ignore: [ '**/result/**', '**.md' ]
jobs:
# TODO(MBkkt) clang-format 14, now this extension doesn't work, because clang-14 not really released yet
# TODO(MBkkt) Use our own script instead of github action, same as in /.githooks
# TODO(MBkkt) Check cmake format?
# TODO(MBkkt) Check markdown format?
# TODO(MBkkt) Add option or workflow for reformat
main:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
path:
- '.'
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check
uses: jidicula/clang-format-action@v4.5.0
with:
clang-format-version: 13
check-path: ${{ matrix.path }}