mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
22 lines
513 B
YAML
22 lines
513 B
YAML
name: clang-format-update
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
clang-format:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install clang-format
|
|
run: |
|
|
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
|