mirror of
https://github.com/open-goal/jak-project
synced 2026-06-29 11:41:11 -04:00
60db0e5ef9
This updates `fmt` to the latest version and moves to just being a copy of their repo to make updating easier (no editing their cmake / figuring out which files to minimally include). The motivation for this is now that we switched to C++ 20, there were a ton of deprecated function usages that is going away in future compiler versions. This gets rid of all those warnings.
27 lines
486 B
YAML
Vendored
Generated
27 lines
486 B
YAML
Vendored
Generated
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
|