yolobs-studio/.github/workflows/clang-format.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
817 B
YAML
Raw Permalink Normal View History

2020-05-27 20:57:19 +00:00
name: Clang Format Check
on: [push, pull_request]
2020-10-01 20:15:25 +00:00
2020-05-27 20:57:19 +00:00
jobs:
ubuntu64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install clang format
run: |
# gets us newer clang
sudo bash -c "cat >> /etc/apt/sources.list" << LLVMAPT
# 3.8
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main
LLVMAPT
2020-10-01 20:15:25 +00:00
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
2020-05-27 20:57:19 +00:00
sudo apt-get -qq update
sudo apt-get install -y clang-format-8
- name: Check the Formatting
run: |
./formatcode.sh
./CI/check-format.sh