mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Added manually triggered clang-format action
This commit is contained in:
parent
f5128a39fe
commit
2e74b07dff
20
.github/workflows/clang-format_update.yaml
vendored
Normal file
20
.github/workflows/clang-format_update.yaml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: clang-format-update
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
clang-format:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install clang-format
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends clang-format
|
||||
clang-format --version
|
||||
|
||||
- name: Run clang-format
|
||||
run: |
|
||||
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.c' \)
|
||||
xargs clang-format --dry-run --Werror
|
||||
Loading…
x
Reference in New Issue
Block a user