2020-04-09 20:54:04 -05:00
|
|
|
name: Clang Format Check
|
|
|
|
|
2022-03-16 23:13:26 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore: ['**.md']
|
|
|
|
branches-ignore: [master]
|
|
|
|
pull_request:
|
|
|
|
paths-ignore: ['**.md']
|
|
|
|
branches-ignore: [master]
|
2020-07-06 20:38:13 +02:00
|
|
|
|
2020-04-09 20:54:04 -05:00
|
|
|
jobs:
|
2021-11-24 17:33:10 +01:00
|
|
|
clang-format-check:
|
2020-04-09 20:54:04 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-21 13:20:54 -04:00
|
|
|
uses: actions/checkout@v3
|
2020-04-09 20:54:04 -05:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
|
|
|
|
- name: Install clang format
|
|
|
|
run: |
|
2021-10-13 01:09:02 -04:00
|
|
|
sudo apt-get install -y clang-format-12
|
2020-04-09 20:54:04 -05:00
|
|
|
|
2022-03-16 23:13:26 +01:00
|
|
|
- name: 'Run clang-format'
|
2020-04-09 20:54:04 -05:00
|
|
|
run: |
|
|
|
|
./CI/check-format.sh
|
2022-03-16 23:13:26 +01:00
|
|
|
./CI/check-changes.sh
|