forked from obsproject/obs-studio
-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (30 loc) · 968 Bytes
/
clang-format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 obsproject/tools/clang-format@17
echo ::endgroup::
- name: 'Run clang-format'
run: |
./.github/scripts/check-format.sh
./.github/scripts/check-changes.sh