obs-studio/.github/workflows/clang-format.yml
Matt Gajownik 472ce22a73 CI: Build on Ubuntu 18.04, use newer clang-format
There are too many issues with 20.04 to successfully build with
VirtualCam - the azure kernel is missing videodev headers. For now,
use 18.04 LTS directly for main CI builds.

Both 18.04 and 20.04 include clang-format-10 without issue.
2021-02-22 02:10:34 -08:00

22 lines
422 B
YAML

name: Clang Format Check
on: [push, pull_request]
jobs:
ubuntu64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install clang format
run: |
sudo apt-get install -y clang-format-10
- name: Check the Formatting
run: |
./formatcode.sh
./CI/check-format.sh