diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-30 22:45:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-31 21:51:00 +0100 |
commit | fb220d567861cf27424e1196702a47fe7e1a0928 (patch) | |
tree | 9b6df08dd181f72e2e5371db6e00cc75d08640df /.github | |
parent | bbe787a0afd51307cdac2c023895c19df31519ca (diff) | |
download | serenity-fb220d567861cf27424e1196702a47fe7e1a0928.zip |
Meta+Docs+CI: Require clang-format >= 11
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cmake.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 0c2e978a92..d8dd659c46 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -21,13 +21,17 @@ jobs: # sudo apt-get update -qq - name: Purge interfering packages - # Remove GCC 9 (installed by default) - run: sudo apt-get purge -y gcc-9 g++-9 libstdc++-9-dev + # Remove GCC 9 and clang-format 10 (installed by default) + run: sudo apt-get purge -y gcc-9 g++-9 libstdc++-9-dev clang-format-10 - name: Install dependencies # These packages are already part of the ubuntu-20.04 image: - # clang-format-10 cmake gcc-10 g++-10 shellcheck libgmp-dev + # cmake gcc-10 g++-10 shellcheck libgmp-dev # These aren't: - run: sudo apt-get install libstdc++-10-dev libmpfr-dev libmpc-dev ninja-build npm + run: | + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main" + sudo apt-get update + sudo apt-get install clang-format-11 libstdc++-10-dev libmpfr-dev libmpc-dev ninja-build npm # If we ever do any qemu-emulation on Github Actions, we should re-enable this: # e2fsprogs qemu-system-i386 qemu-utils - name: Install prettier @@ -35,7 +39,7 @@ jobs: - name: Use GCC 10 instead run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60 --slave /usr/bin/g++ g++ /usr/bin/g++-10 - name: Check versions - run: set +e; g++ --version; g++-10 --version; clang-format --version; clang-format-10 --version; prettier --version; python --version; python3 --version; ninja --version + run: set +e; g++ --version; g++-10 --version; clang-format --version; clang-format-11 --version; prettier --version; python --version; python3 --version; ninja --version # === PREPARE FOR BUILDING === |