Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test][cfg] Use clang-13 in the CI, uplift tests accordingly #3475

Merged
merged 1 commit into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/install-deps.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

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-11 main' -y
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-13 main' -y

sudo apt-get update -q

Expand All @@ -13,9 +13,9 @@ sudo apt-get install \
libldap2-dev \
libsasl2-dev \
libssl-dev \
clang-11 \
clang-tidy-11
clang-13 \
clang-tidy-13

sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-11 9999
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 9999
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-11 9999
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-13 9999
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 9999
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-13 9999
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ compiler_warning_unused:
compiler_error:
$(CXX) -w compiler_error.cpp -o /dev/null
context_hash:
$(CXX) -w context_hash.cpp -o /dev/null
$(CXX) -w context_hash.cpp -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o /dev/null
collision:
$(CXX) -w filename_collision/main.cpp filename_collision/a/f.cpp filename_collision/b/f.cpp -o /dev/null
tidy_alias:
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/check_clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import sys

# clang an clang tidy versions to run the tests
_CLANG_MIN_VERSION = {"major": 11, "minor": 0}
_TIDY_MIN_VERSION = {"major": 11, "minor": 0}
_CLANG_MIN_VERSION = {"major": 13, "minor": 0}
_TIDY_MIN_VERSION = {"major": 13, "minor": 0}


def eprint(*args, **kwargs):
Expand Down