Fix/Update the clang-format version to 10 (#3181)

This commit is contained in:
Thiago Silva 2021-04-09 17:13:35 -03:00 committed by GitHub
commit 298627cbff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,10 +8,14 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
- name: Get clang-format 8
env:
- name: Installing clang-format 10
env:
DEBIAN_FRONTEND: noninteractive
run: sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 1000
run: sudo apt-get install clang-format-10
- name: Setting clang-format 10 as the default
env:
DEBIAN_FRONTEND: noninteractive
run: sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-10 1000
- name: Clang Format
run: ci/check-commit-format.sh