mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 08:46:52 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](08c6903cd8...1af3b93b68)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
29 lines
602 B
YAML
29 lines
602 B
YAML
name: lint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.h'
|
|
- '**.cc'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
format_code:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
|
|
- name: Install clang-format
|
|
run: |
|
|
wget https://apt.llvm.org/llvm.sh
|
|
sudo bash ./llvm.sh 21
|
|
sudo apt install clang-format-21
|
|
|
|
- name: Run clang-format
|
|
run: |
|
|
find include src -name '*.h' -o -name '*.cc' | \
|
|
xargs clang-format-21 -i -style=file -fallback-style=none
|
|
git diff --exit-code
|