CI: Update to clang-format 13 using LLVM repo

This commit is contained in:
Rémi Verschelde 2021-10-28 16:01:30 +02:00
parent f7d852b532
commit f42ef8d5f9
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 8 additions and 6 deletions

View file

@ -18,13 +18,15 @@ jobs:
run: |
sudo rm -f /etc/apt/sources.list.d/*
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main"
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get install -qq dos2unix recode clang-format-12
sudo apt-get install -qq dos2unix recode clang-format-13
sudo update-alternatives --remove-all clang-format
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-12 100
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-13 100
sudo pip3 install black==20.8b1 pygments
- name: File formatting checks (file_format.sh)