Clang Format Check #2593
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: Clang Format Check | |
on: | |
push: | |
paths-ignore: ['**.md'] | |
branches-ignore: [streamlabs] | |
pull_request: | |
paths-ignore: ['**.md'] | |
branches-ignore: [streamlabs] | |
jobs: | |
clang-format-check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: 'recursive' | |
- name: Install clang format 17 | |
shell: bash | |
run: | | |
echo ::group::Install Dependencies | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH | |
echo "/home/linuxbrew/.linuxbrew/opt/clang-format@17/bin" >> $GITHUB_PATH | |
brew install --quiet zsh | |
echo ::endgroup:: | |
- name: 'Run clang-format' | |
run: | | |
./.github/scripts/check-format.sh | |
./.github/scripts/check-changes.sh |