Skip to content

Clang Format Check #2593

Clang Format Check

Clang Format Check #2593

Workflow file for this run

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