* Put fmt into version agnostic subdir * Add fmt to dependency update script * Remove manually added fmt * Squashed 'third_party/fmt/' content from commit e69e5f977 git-subtree-dir: third_party/fmt git-subtree-split: e69e5f977d458f2650bb346dadf2ad30c5320281
27 lines
486 B
YAML
27 lines
486 B
YAML
name: lint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.h'
|
|
- '**.cc'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
format_code:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install clang-format
|
|
uses: aminya/setup-cpp@v1
|
|
with:
|
|
clangformat: 17.0.5
|
|
|
|
- name: Run clang-format
|
|
run: |
|
|
find include src -name '*.h' -o -name '*.cc' | xargs clang-format -i -style=file -fallback-style=none
|
|
git diff --exit-code
|