chore: Add clang-format #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format Dry Run | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
dry-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Set up clang-format | |
uses: jidicula/clang-format-action@v4.13.0 | |
with: | |
exclude-regex: .* | |
clang-format-version: "18" | |
- name: Run format script with dry_run | |
run: | | |
# sudo ln -sf /usr/bin/clang-format-18 /usr/bin/clang-format | |
clang-format --version | |
ls /usr/bin/clang* | |
python tools/format.py dry_run |