Files
yoga/.github/actions/clang-format/action.yml
Nick Gerleman ff5d29230e --dry-run
2022-10-14 08:09:29 -07:00

22 lines
574 B
YAML

name: Clang Format
inputs:
directory:
description: Directory to Lint
required: true
version:
description: LLVM version to use # Should be kept roughly in sync with arcanist
required: false
default: 12
runs:
using: "composite"
steps:
- name: Install
shell: bash
run: sudo apt install clang-format-${{ inputs.version }}
- name: clang-format
working-directory: ${{ inputs.directory }}
shell: bash
run: clang-format-${{ inputs.version }} --dry-run --Werror **/*.h **/*.cpp # Yoga's config doesn't support ObjC