clang 8 included in actions env (#2670)

* ensure we use clang-format-8
This commit is contained in:
Russel Waters 2020-03-18 13:53:10 -04:00 committed by GitHub
commit 82bf4203c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,12 +27,7 @@ jobs:
- name: Get clang-format 8
env:
DEBIAN_FRONTEND: noninteractive
run: |
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main' -y
sudo apt update -y
sudo apt install -y clang-format-8
sudo ln -s /usr/bin/clang-format-8 /usr/bin/clang-format
run: sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 1000
- name: Clang Format
run: ci/check-commit-format.sh