obs-studio/.github/workflows/clang-format.yml
Ryan Foster 2f974da551 CI: Update GitHub Actions
Update all of our GitHub Actions to the latest versions. Notably, the
update to actions/cache gives support for the 10GB GitHub Actions cache,
and the updates for the other first-party actions are required for
future M1 runner support.
2022-03-21 13:46:40 -04:00

28 lines
555 B
YAML

name: Clang Format Check
on:
push:
paths-ignore: ['**.md']
branches-ignore: [master]
pull_request:
paths-ignore: ['**.md']
branches-ignore: [master]
jobs:
clang-format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install clang format
run: |
sudo apt-get install -y clang-format-12
- name: 'Run clang-format'
run: |
./CI/check-format.sh
./CI/check-changes.sh