Remove installation of clang (#1244)

This is possible thanks to
https://github.com/actions/virtual-environments/pull/447
This commit is contained in:
Nils 2020-03-20 12:08:19 +00:00 committed by GitHub
parent 522ebae65e
commit b974a7ed81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,12 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
sudo apt install clang-format-9
- name: Format code
run: |
find src/ -type f -name '*.c' -name '*.c' | xargs clang-format-9 -i
find src/ -type f -name '*.c' -name '*.c' | xargs clang-format -i
git diff-index --quiet HEAD -- || (git diff && exit 1)