Skip to content

chore: Add clang-format #17

chore: Add clang-format

chore: Add clang-format #17

name: Format Dry Run
on:
push:
branches:
- master
pull_request:
jobs:
dry-run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Set up clang-format
uses: jayllyz/clang-format-action@v1
with:
check: false
clang-version: 18 # or any other version you need
- name: Run format script with dry_run
run: |
sudo ln -s /usr/bin/clang-format-18 /usr/bin/clang-format
python tools/format.py dry_run